> function roundUp x > return trunc(x) + char itemoffset((x mod 1 > 0),"true,false") of "10" > end roundUp
VERY clever, Peter! That's a great one-line variant to: function roundUp x put trunc(x) into tRetVal if x mod 1 > 0 then add 1 to tRetVal return tRetVal end roundUp :D Ken Ray Sons of Thunder Software, Inc. Email: k...@sonsothunder.com Web Site: http://www.sonsothunder.com/ _______________________________________________ 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