lib/PHPRtfLite/Unit.php
public static function convertTo($value, $unitFrom, $unitTo)
    {
        if ($unitTo == $unitFrom) {
            return $value;
        }
        return ($value * $unitFrom) / $unitTo;
    }
public static function convertTo($value, $unitFrom, $unitTo)
    {
        if ($unitTo == $unitFrom) {
            return $value;
        }
        return ($value * $unitFrom) / $unitTo;
    }
public static function convertTo ( $ value , $ unitFrom , $ unitTo ) { if ( $ unitTo == $ unitFrom ) { return $ value ; } return ( $ value * $ unitFrom ) / $ unitTo ; }
converts the value to another unit

@param  float $value
@param  float $unitFrom
@param  float $unitTo
@return float
converts the value to another unit