Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Library for Clipper - <b>l_zerodiv()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
                                 L_ZERODIV()


Syntax:        L_ZERODIV(<expN1>,<expN2>)


Purpose:       To control a "divide by zero error".


Arguments:     <expN1> is the numerator.

               <expN2> is the denominator.
               (The function divides <expN1> by <expN2>.)


Returns:       A numeric result or zero.


Usage:         In cases where a divide-by-zero is possible.


Examples:      ? L_ZERODIV(3,5)                 && Result: 0.6
               ? L_ZERODIV(3,0)                 && Result: 0


Language:      Clipper

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