public function convert($value, $from, $to, $decimals = 2)
    {
        return (float) $this->from($value, $from)->to($to, $decimals, !empty($decimals));
    }
public function convert($value, $from, $to, $decimals = 2)
    {
        return (float) $this->from($value, $from)->to($to, $decimals, !empty($decimals));
    }
public function convert ( $ value , $ from , $ to , $ decimals = 2 ) { return ( float ) $ this -> from ( $ value , $ from ) -> to ( $ to , $ decimals , ! empty ( $ decimals ) ) ; }
Shortcut method to convert units
@param number $value
@param string $from
@param string $to
@param integer $decimals
@return float
Shortcut method to convert units