On Thu, 30 Apr 2009 14:00:06 -0500 M0E Lnx wrote:
> 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. Divide the number by 250. If the result is > x.5 then (x+1)*250 If the result is < x.5 then x*250 If the number is exactly x.5 then you make an "executive decision" to round it up or down. -- MELVILLE THEATRE ~ Melville Sask ~ http://www.melvilletheatre.com ------------------------------------------------------------------------------ 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 Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user