Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounded values
Message
 
To
30/12/1998 06:41:20
Marcelo Codino
Mystic & Faith - Sistemas -
Buenos Aires, Argentina
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00171475
Message ID:
00171478
Views:
30
Hi Marcelo,

>I´ve this expression :ALLT(STR(ROUND(VAL(TRANSFORM(n_val,'99999.99')),2))).The result is a number without decimals,but I want that decimals appears rounded like this : Eg.:12.93 = 12.95,2450.22 = 2450.20 and so on.How can I do this ?

What about

nRoundedValue = ROUND(12.95*20,0)/20
cValue = ALLTRIM(TRANSFORM(nRoundedValue,"99999.99"))

Christof
--
Christof
Previous
Reply
Map
View

Click here to load this message in the networking platform