OK now you are just showing off! :-) Bob
On Feb 17, 2012, at 3:39 PM, Geoff Canyon Rev wrote: > My original function took the number to be rounded and the increment to > round up to, so I think your version would become: > > function roundUp x,i -- rounds x up to the next i > return x div i * i + item itemoffset((x mod i > 0),"true,false") of (i,0) > end roundUp > > On Fri, Feb 17, 2012 at 1:49 PM, Peter M. Brigham, MD <pmb...@gmail.com>wrote: > >> function roundUp x >> return trunc(x) + char itemoffset((x mod 1 > 0),"true,false") of "10" >> end roundUp >> > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode