protected function toBase($value, array $unit)
    {
        if (is_callable($unit['conversion'])) {
            return $unit['conversion']($value, false);
        }

        return $value * $unit['conversion'];
    }
protected function toBase($value, array $unit)
    {
        if (is_callable($unit['conversion'])) {
            return $unit['conversion']($value, false);
        }

        return $value * $unit['conversion'];
    }
protected function toBase ( $ value , array $ unit ) { if ( is_callable ( $ unit [ 'conversion' ] ) ) { return $ unit [ 'conversion' ] ( $ value , false ) ; } return $ value * $ unit [ 'conversion' ] ; }
Convert from value to its base unit
@param number $value
@param array $unit
@return number
Convert from value to its base unit