Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numbers
Message
 
 
To
24/07/2007 09:08:07
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01243124
Message ID:
01243221
Views:
22
>hi,
>thank you for reply,it works
>>
>>lnNumber = 1235.789
>>lcText = TRANSFORM(INT(lnNumber % 1 * 1000))
>>
>>>

Are you sure you always have 3 digits after the point? If you have 2 or more than 3, you would not get the decimal only part, e.g. test with

lnNumber = 344.8990034

and with lnNumber = 23.44

What exactly is the goal here?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform