Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fancy trick to display 7,2 format without the decimal
Message
From
18/12/2003 09:50:03
 
 
To
18/12/2003 09:45:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00860324
Message ID:
00860327
Views:
19
>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.


Michel,

Would this do ?
?strtran(str(745.20,6,2), set('point'))
or with leading zeroes
?strtran(transf(745.20, '@L ###.##'), set('point'))
Gregory
Previous
Reply
Map
View

Click here to load this message in the networking platform