Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem - Average is not a whole number.
Message
From
18/01/1999 17:01:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00177228
Message ID:
00177365
Views:
37
>Yes - while each computation is an integer, the average is being computed by dividing the sum of the integer values by the count of the integer values in the group. You'll have to coerce the result into an integer for display purposes; this is most easily done by using a format with no decimal places. This will force the decimals to truncate rather than providing a correctly rounded integer value that more accurately reflects the mean, but it doesn't sound like that matters.

Additionally, if there's a need to sum them, then we should use report variables. A simple variable which would have a value of Int(average_field), Calculate=nothing, can be used throughout the report instead of the field itself, including the places where it should appear in totals.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform