src/Chippyash/Math/Type/Calculator.php
protected function convert($num)
    {
        if ($num instanceof NumericTypeInterface) {
            return $num;
        }
        if (is_numeric($num)) {
            return $this->calcEngine->convertNumeric($num);
        }

        $type = (is_object($num) ? get_class($num) : gettype($num));
        throw new \BadMethodCallException('No solution for unknown type: ' . $type);
    }
protected function convert($num)
    {
        if ($num instanceof NumericTypeInterface) {
            return $num;
        }
        if (is_numeric($num)) {
            return $this->calcEngine->convertNumeric($num);
        }

        $type = (is_object($num) ? get_class($num) : gettype($num));
        throw new \BadMethodCallException('No solution for unknown type: ' . $type);
    }
protected function convert ( $ num ) { if ( $ num instanceof NumericTypeInterface ) { return $ num ; } if ( is_numeric ( $ num ) ) { return $ this -> calcEngine -> convertNumeric ( $ num ) ; } $ type = ( is_object ( $ num ) ? get_class ( $ num ) : gettype ( $ num ) ) ; throw new \ BadMethodCallException ( 'No solution for unknown type: ' . $ type ) ; }
Convert into Strong Numeric Type

@param int|float|NumericTypeInterface $num operand

@return \Chippyash\Type\Number\IntType
Convert into Strong Numeric Type