From 7026b96ec807b169f7b413056e52412ae422ea9d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 30 Oct 2014 13:15:19 -0600 Subject: The new division works great! Other minor bug fixes including scale issues, digit() access stopped a digit before the final possible digit in the scale, >, >=, <, <= all work correctly with mixed scale numbers now, probably other fixes. --- src/unitparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unitparser.cpp') diff --git a/src/unitparser.cpp b/src/unitparser.cpp index 891f7b3..43dacfc 100644 --- a/src/unitparser.cpp +++ b/src/unitparser.cpp @@ -33,7 +33,7 @@ void UnitParser::order1() unitTest(parse("2+3*5") == "17"); unitTest(parse("2+3-5") == "0"); unitTest(parse("(2+3)*5") == "25"); - unitTest(parse("1.59*40/24*21", 5) == "55.125"); - unitTest(parse("1.59*40/(24*21)", 5) == "0.125"); // bc says it's this: "0.12619"); + unitTest(parse("1.59*40/24*21", 5) == "55.65"); + unitTest(parse("1.59*40/(24*21)", 5) == "0.12619"); // bc says it's this: "0.12619"); } -- cgit v1.2.3