exponent example

/** * BCAdd - fixes a problem of BCMath and exponential numbers * * @param string $op1 * @param string $op2 * @param integer $scale * @return string */
    public static function Add($op1$op2$scale = null)
    {
        $op1 = self::exponent($op1$scale);
        $op2 = self::exponent($op2$scale);

        return bcadd($op1$op2$scale);
    }

    /** * BCSub - fixes a problem of BCMath and exponential numbers * * @param string $op1 * @param string $op2 * @param integer $scale * @return string */
Home | Imprint | This part of the site doesn't use cookies.