Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Digits after the dot
Message
From
29/01/2006 07:07:05
 
 
To
29/01/2006 06:32:31
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01091244
Message ID:
01091248
Views:
15
>Hi all
>How can I get the 2 digits after the dot.
>For example
cpercent=alltrim(str(100*part/all))+'%'
I get 1% or 4%, but I want to get 1.32 or 3.76.
>Thank's

Try
cpercent = alltrim(str(100 * part / all, 10, 2)) + "%"
Joaquim
Previous
Reply
Map
View

Click here to load this message in the networking platform