protected static function leadingZeros($significand)
    {
        // Convert to binary string
        $significand = decbin($significand);

        // Trim all the zeros from the left
        $significand = ltrim($significand, '0');

        return static::getNumSignificandBits() - strlen($significand);
    }
protected static function leadingZeros($significand)
    {
        // Convert to binary string
        $significand = decbin($significand);

        // Trim all the zeros from the left
        $significand = ltrim($significand, '0');

        return static::getNumSignificandBits() - strlen($significand);
    }
protected static function leadingZeros ( $ significand ) { // Convert to binary string $ significand = decbin ( $ significand ) ; // Trim all the zeros from the left $ significand = ltrim ( $ significand , '0' ) ; return static :: getNumSignificandBits ( ) - strlen ( $ significand ) ; }
Gets the number of leading zeros in a significand.

@param $significand int The significand.
@return int The number of leading zeros.
Gets the number of leading zeros in a significand .