Re: simple eurphoria question
- Posted by Chris Bensler <bensler at nt.net> Dec 08, 2006
- 717 views
Mark K. Akita wrote: > > Hi John, > > This function seems to work as well for converting atom to integer. > > }}} <eucode> > > function int(atom a) > > return floor(a)+(a<0) > > end function > > </eucode> {{{ > > Good luck! > > Mark K. Akita > <a href="http://marksarts.blogspot.com/">http://marksarts.blogspot.com/</a> That's what I thought Mark, but it's incorrect. :) Try with this set of numbers: 1, 1.1, 1.9, 2, -1, -1.1, -1.9, -2 Mike Nelson, or Larry Miller's solutions are correct. Chris Bensler ~ The difference between ordinary and extraordinary is that little extra ~ http://empire.iwireweb.com - Empire for Euphoria