Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric value
Message
From
10/05/2000 01:42:20
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00367820
Message ID:
00367970
Views:
13
>You can force truncation using the FLOOR() function.

Careful, remember, Floor() rounds down to the next integer, and Cieling() of course rounds up, so Floor(nNum * 10) / 10 on -2.55 gives -2.6, thats not good. You'd have to use Floor(nNum * -10) / -10 or better yet, just Int(nNum * 10) / 10
Previous
Reply
Map
View

Click here to load this message in the networking platform