Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The greatest lower number
Message
From
19/05/2002 12:04:13
 
 
To
19/05/2002 11:42:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658665
Message ID:
00658673
Views:
14
>Certainly not the fastest, but (I believe) one of the shortest:
>
INT(m.lnNumber*10^m.lnDecimalPlaces)/10^m.lnDecimalPlaces
>Also, it won't give you the nearest lower number, but the nearest number closer to zero.

Hello and thank you

In the mean time I found it myself:
DesiredNumber = ROUND(GivenNumber - .5*10^-DecimalPlaces,DecimalPlaces)
Thanks, anyway.
Grigore Dolghin
Class Software.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform