Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Round() function
Message
From
06/05/2003 03:57:29
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
06/05/2003 00:46:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00785199
Message ID:
00785224
Views:
20
>Hi,
>
>i can't round up a value with this function
>example: 1.61 became 1.7 or 1.661 became 1.67
>
>what function i use for this case ?
>
>thx,
>Abit

You're not rounding, you're doing an absolute round-up. Try this :
* round(lnNum,lnRound)
Ceiling(lnNum * 10^lnRound)*10^-lnRound
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform