Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
35.61 to 3561
Message
From
26/07/2001 11:05:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00535735
Message ID:
00535746
Views:
13
>Suppouse I have a value 35.61
>
> How can I print it to paper using a report so
> that is printed as 3561
>
> The point should not appear on the paper
>
>
> Thanks

Depending on your needs (always two decimals, or variable):
? 35.61 * 100

Or:

? alltrim(strtran(padr(MyValue,20), ".", ""))

or (more flexible):

? alltrim(strtran(padr(MyValue,20), set("point"), ""))
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform