Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Doubles and UI display
Message
From
04/09/2009 06:03:57
 
 
To
04/09/2009 04:01:18
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01422588
Message ID:
01422607
Views:
35
>>>>Displaying something that has 3 or 4 significant decimals with only 2 decimals is misleading to say the least
>>>
>>>I do it all the time.
>>
>>
>>Then, you are misleading to say the least.
>
>No
>It is a basic engeneering principle to round. One have to know what a value is saying.
>If you messure lenght, the result depends on the ruler. A common folding ruler will have a failure of 1cm/m, a tape line less. If you messure with one folding ruler and cut with the other you might end up with 2cm / m failure.
>
>Same is with values on comp. Maybe an internal higher precision is needed to keep rounding failures low.
>
>Again, this is something bankers do all the time. VFP currency type is defined with 4 decimals for some reason.
>
>Agnes

Well, then
assert Retract('Then, you are misleading to say the least. ')
What I was saying is that I round( , 2) any multiplication/division involving currency

So the users can add all the lines of the report (or invoice).
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform