Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The greatest lower number
Message
From
20/05/2002 08:23:04
 
 
To
19/05/2002 11:42:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00658665
Message ID:
00658819
Views:
14
Antonio,

> Given a specific decimal places, I need to know the nearest number lower
> that a specified number.

The correct formula is
Round(Floor(a * (10^b)) / (10^b), b)
where a is your number and b is the number of decimal places.

Daniel
Previous
Reply
Map
View

Click here to load this message in the networking platform