Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - infinity() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 INFINITY()
 Provides an error return value for mathematical functions.
 Returns 2 to the 1024th power.

 Return value is the bit pattern used by the 8087/80287
        to represent infinity (7F F0 00 00 00 00 00 00).

 Some of the mathematical functions return INFINITY() to indicate
 an error.  Possible errors include a value which is too large,
 an attempted division by zero, or an even root of a negative number.
 This shows up as numeric overflow asterisks in Clipper, but can be
 tested for as in this example.

 IF LOGNBASX( m_num1, m_num2 ) = INFINITY()
    ? "Error in LOGNBASX"
 ENDIF


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: FACT() LOGNBASX() LOGTEN() ROOT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson