Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why does 0.33 not equal 1/3?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00669276
Message ID:
00669290
Vues:
9
Sergey,

Thank you for the quick reply, ROUND() and set decimal cleared up the question.

Kind Regards,

Mat

>SET DECIMAL controls number of decimal places displayed not the number of decimal places in the result. You can use ROUND() function to comtrol the number of decimal places in the result.
y = ROUND(1/3,2)
>x=.33
>? x=y
>
>
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform