Good suggestion, I spend too much time in .net where utility functions are abundant :) I tend to overcode when I don't have them... I remember one of the acient lingo-l guru's giving me the same advice a few years back :)
-----Oorspronkelijk bericht----- Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Namens Alex da Franca Verzonden: dinsdag 9 mei 2006 11:10 Aan: Lingo programming discussion list Onderwerp: Re: <lingo-l> spheroid distortion Hi Chris, here are some simpler math methods: -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx on floor me, num return integer(num - 0.5) end -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx on ceil me, num return integer(num + 0.5) end -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx on round me, num return integer(num) end -- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx on frac me, num return num - floor(me, num) end --------------------------- ||| a¿ex [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [email protected] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
