Oops, thanks Joe. Alex 2009/5/2 Joe Groff <[email protected]>: > On May 2, 2009, at 1:26 PM, Alex Drummond wrote: > >> Hi all, >> >> The new 1/0 0/0 -1/0 syntax for the special floating point values >> seems to raise a division by zero error whenever it's used. For >> example, in evaluating the following expression: >> >> 1/0 0.0 > >> >> Is there any way of using these values in calculations that doesn't >> cause an error to be raised? I couldn't find anything in the >> documentation on floats. > > The special float values need a decimal point: > > -1/0. 0/0. 1/0. > > Without the decimal point, you're asking for a rational with > denominator 0, which isn't allowed. > > -Joe > > ------------------------------------------------------------------------------ > Register Now & Save for Velocity, the Web Performance & Operations > Conference from O'Reilly Media. Velocity features a full day of > expert-led, hands-on workshops and two days of sessions from industry > leaders in dedicated Performance & Operations tracks. Use code vel09scf > and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf > _______________________________________________ > Factor-talk mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/factor-talk >
------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf _______________________________________________ Factor-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/factor-talk
