Changeset 2132

Show
Ignore:
Timestamp:
01/18/07 16:29:53
Author:
miyagawa
Message:

fixed inch to meter conversion

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • misc/unitconverter.cgi

    r2131 r2132  
    3434    my $value = eval { $func->(validate_number($query->param('value'))) }; 
    3535    if ($@) { 
    36         print $query->header, "ERR: Can't do $from to $to conversion"; 
     36        print $query->header, "ERR: Can't do $from to $to conversion: $@"; 
    3737        return; 
    3838    } 
     
    6565 
    6666sub convert_inch_meter { 
    67     return 0.254 * $_[0]; 
     67    return 0.0254 * $_[0]; 
    6868} 
    6969 
    7070sub convert_meter_inch { 
    71     return $_[0] / 0.254; 
     71    return $_[0] / 0.0254; 
    7272} 
    7373