Re: abs()
- Posted by Patrick Barnes <mrtrick at gmail.com> Oct 27, 2004
- 1684 views
On Wed, 27 Oct 2004 11:14:44 +0100, Carl W. <euphoria at cyreksoft.yorks.com> wrote: > I did change the return line to: > }}} <eucode> > return x*( 1 - 2*(x<0) ) > </eucode> {{{ > ...as otherwise it wouldn't return correct results for anything in the > atom range 0.0 to 1.0. Hehehe... oops -- MrTrick