lib/libbcmath.js
function(num) {
        var count; // int
        var nptr; // int

        /* Quick check. */
        //if (num == BCG(_zero_)) return TRUE;

        /* Initialize */
        count = num.n_len + num.n_scale;
        nptr = 0; //num->n_value;

        /* The check */
        while ((count > 0) && (num.n_value[nptr++] === 0)) {
            count--;
        }

        if (count !== 0) {
            return false;
        } else {
            return true;
        }
    }
function(num) {
        var count; // int
        var nptr; // int

        /* Quick check. */
        //if (num == BCG(_zero_)) return TRUE;

        /* Initialize */
        count = num.n_len + num.n_scale;
        nptr = 0; //num->n_value;

        /* The check */
        while ((count > 0) && (num.n_value[nptr++] === 0)) {
            count--;
        }

        if (count !== 0) {
            return false;
        } else {
            return true;
        }
    }
function ( num ) { var count ; // int var nptr ; // int /* Quick check. */ //if (num == BCG(_zero_)) return TRUE; /* Initialize */ count = num . n_len + num . n_scale ; nptr = 0 ; //num->n_value; /* The check */ while ( ( count > 0 ) && ( num . n_value [ nptr ++ ] === 0 ) ) { count -- ; } if ( count !== 0 ) { return false ; } else { return true ; } }
Determine if the number specified is zero or not
@param bc_num num    number to check
@return boolean      true when zero, false when not zero.
Determine if the number specified is zero or not