Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Rounding up
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Rounding up
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066470
Message ID:
01066470
Views:
64
hi all,
i have an few lines of code and i was just wondering if there was a neater way of doing it. in an application we store the area a box of tiles covers. when the user enters the area of the room, this figure is divided by the area the box covers and we get the number of boxes needed. sometimes this is 2.3 boxes which i want to round to 3, where the problem is, and sometimes it 2.6 and everything works out fine. is there a short way to always round up? i have code already doing it using mod etc, but i'm just wondering if there is a one liner, possibly an unlisted parameter or something.
Slán
~M
Go raibh maith agat

~M
Next
Reply
Map
View

Click here to load this message in the networking platform