Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fancy trick to display 7,2 format without the decimal
Message
 
 
To
18/12/2003 09:51:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00860324
Message ID:
00860332
Views:
25
>>>This might seem quite easy but what would be the best approach to display 745.20 in a format of 99999 where the decimal is removed? For example, that should give 74520.
>>
>>
? INT(MyValue*100)
>
>The INT seems to be quite important in here. With it, it provides a proper display when I use something like this:
>
>
>MESSAGEBOX(PADL(INT(742.50*100),6,'0'))
>
Yes, INT is required if you pass value to PADL/PADR functions. W/o it decimals are included in result.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform