summaryrefslogtreecommitdiff
path: root/src/unitnumber.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2015-01-29 08:49:55 -0700
committerMike Buland <mike@xagasoft.com>2015-01-29 08:49:55 -0700
commitf03026f5c2cde1eecfda273eaa52df10287f0f9e (patch)
treec3b5398bb29b848fc5fca2a87633961150d41cad /src/unitnumber.h
parente64cb84fe43660818f7d6eff2954147495b1ac8b (diff)
downloadclic-f03026f5c2cde1eecfda273eaa52df10287f0f9e.tar.gz
clic-f03026f5c2cde1eecfda273eaa52df10287f0f9e.tar.bz2
clic-f03026f5c2cde1eecfda273eaa52df10287f0f9e.tar.xz
clic-f03026f5c2cde1eecfda273eaa52df10287f0f9e.zip
Fixed nasty subtraction bug when dealing with fractions.0.13
It turned out to be a really simple solution, but man, that was embarassing. I forgot to include the fractional portion of a number when fixing my radix+1 compliment numbers.
Diffstat (limited to '')
-rw-r--r--src/unitnumber.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unitnumber.h b/src/unitnumber.h
index 96d882e..097fd5b 100644
--- a/src/unitnumber.h
+++ b/src/unitnumber.h
@@ -14,6 +14,7 @@ public:
14 void multiply1(); 14 void multiply1();
15 void divide1(); 15 void divide1();
16 void number1(); 16 void number1();
17 void number2();
17 void compare1(); 18 void compare1();
18 void radix1(); 19 void radix1();
19 void fraction1(); 20 void fraction1();