Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Doubles and UI display
Message
De
04/09/2009 06:03:57
 
 
À
04/09/2009 04:01:18
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01422588
Message ID:
01422607
Vues:
34
>>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform