Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conversion w/o rounding
Message
From
01/02/2000 15:33:02
 
 
To
01/02/2000 15:29:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00325791
Message ID:
00325793
Views:
14
>I'd like to convert an integer value (2.65) and convert it to a character string. When I do this it rounds the number up to 3. I don't want the number to be rounded up, I only want the quotient.
>
>How can I handle this in VFP?
>
>TIA,
>
>/Chris

INT will always chop off the decimal portion, so str(int(2.65)) will produce a string with the number 2 in it... it will also have a bunch of spaces, so ALLTRIM would be handy.
--Todd Sherman
-Wake Up! Smell the Coffee!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform