diff options
author | cos <cos> | 2016-07-17 20:00:45 +0200 |
---|---|---|
committer | cos <cos> | 2016-07-17 20:30:40 +0200 |
commit | 255a31c21a215bd06cd1884f958130b8e63d3322 (patch) | |
tree | f1cb0bbf62f7e80f00e6349b2c2a01b79c5aee38 | |
parent | 8459903fa0ab8e61a9a373ef74c2e6c3963b7c78 (diff) | |
download | mat-255a31c21a215bd06cd1884f958130b8e63d3322.zip |
Add missing unit conversion for cl & ml.
-rwxr-xr-x | mat | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -140,6 +140,10 @@ sub convert_to_unit { $convert{'volume'} = $in_amount; } elsif ($in_unit eq "dl") { $convert{'volume'} = $in_amount / 10; + } elsif ($in_unit eq "cl") { + $convert{'volume'} = $in_amount / 100; + } elsif ($in_unit eq "ml") { + $convert{'volume'} = $in_amount / 1000; } elsif ($in_unit eq "msk") { $convert{'volume'} = $in_amount * 0.015; } elsif ($in_unit eq "tsk") { |