summaryrefslogtreecommitdiff
path: root/src/number.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/number.h
parente64cb84fe43660818f7d6eff2954147495b1ac8b (diff)
downloadclic-1e5d403cf25b86b4572c98792205de19ce76071f.tar.gz
clic-1e5d403cf25b86b4572c98792205de19ce76071f.tar.bz2
clic-1e5d403cf25b86b4572c98792205de19ce76071f.tar.xz
clic-1e5d403cf25b86b4572c98792205de19ce76071f.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/number.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/number.h b/src/number.h
index 2f7a583..79cd5f5 100644
--- a/src/number.h
+++ b/src/number.h
@@ -45,6 +45,7 @@ public:
45 Bu::String toString() const; 45 Bu::String toString() const;
46 46
47 int digit( int iIdx ) const; 47 int digit( int iIdx ) const;
48 void setDigit( int iIdx, int iVal );
48 49
49 int getScale() const { return iScale; } 50 int getScale() const { return iScale; }
50 int getEffectiveScale() const; 51 int getEffectiveScale() const;