This dilema is running circles around my head... I need help

I need a way to take a number, say an integer and round it up to the
nearest increment of 250. This may imply decreasing or increasing the
number.

For instance
input = 400
I need my app to round up to 500
input = 550
I need my app to round down to 500

The input values come from a text file provided to my from another
coworker, which means that using a spinbox is out of the question. I
have no control over what is fed to the app, it just needs to round
up/down to 250 cut offs.

Does anyone have an idea how to work this?

------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to