Corrected weird inch to mm ratio

This commit is contained in:
vovanium 2010-03-26 19:34:47 +00:00
parent ed3dbe8b72
commit bbae5ae5e2
1 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ double To_User_Unit( bool is_metric, double val, int internal_unit_value )
double value;
if( is_metric )
value = val * 25.4000508001016 / internal_unit_value;
value = val * 25.4 / internal_unit_value;
else
value = val / internal_unit_value;
@ -474,7 +474,7 @@ int From_User_Unit( bool is_metric, double val, int internal_unit_value )
double value;
if( is_metric )
value = val * internal_unit_value / 25.4000508001016;
value = val * internal_unit_value / 25.4;
else
value = val * internal_unit_value;