Commit 6e4364e6 by sn

mcUnityCalculator napassungen

1 parent d58c99e3
Showing with 4 additions and 3 deletions
......@@ -21,9 +21,10 @@ class mcUnityCalculator {
* @param string $param_out_unit
* @return number
*/
public static function to($param_in_number, $param_in_unit, $param_out_unit){
$inchNumber = mcUnityCalculator::toInch($param_in_number, $param_in_unit);
$outNumber = mcUnityCalculator::inchTo($inchNumber, $param_out_unit);
public static function to($param_in_number, $param_in_unit, $param_out_unit, $param_dpi=300){
D::li("to($param_in_number, $param_in_unit, $param_out_unit, $param_dpi=300){");
$inchNumber = mcUnityCalculator::toInch($param_in_number, $param_in_unit, $param_dpi);
$outNumber = mcUnityCalculator::inchTo($inchNumber, $param_out_unit, $param_dpi);
return $outNumber;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!