Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need Round UP Command
Message
From
08/10/2001 07:03:01
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00564838
Message ID:
00565407
Views:
20
>The round() command in VB rounds up if the value is .5 or higher,
>but what I need is to round up if there is any fraction whatsoever,
>so 1.1 would = 2, and 45.23 = 46, etc.
>
>Is there any easy command besides breaking into the MOD functions?

ROUND( nValue + 0.5)

Will always round up.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform