Thank you guys. The first suggestion worked. On Apr 30, 2009 3:24 PM, "Simonart Dominique" <[email protected]> wrote:
Frank Cox a écrit : > On Thu, 30 Apr 2009 14:00:06 -0500 > M0E Lnx wrote: > > >> I need a way to take a number, say an... A = N mod 250 N = N - A if A > 125 then N += 250 In this case N=125 would be rounded to 0 If you want it rounded to 250 change the test by if A >= 125 ... Dominique Simonart ------------------------------------------------------------------------------ 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 ------------------------------------------------------------------------------ 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
