diff options
author | Mike Buland <mike@xagasoft.com> | 2015-01-29 08:49:55 -0700 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2015-01-29 08:49:55 -0700 |
commit | f03026f5c2cde1eecfda273eaa52df10287f0f9e (patch) | |
tree | c3b5398bb29b848fc5fca2a87633961150d41cad /src/number.h | |
parent | e64cb84fe43660818f7d6eff2954147495b1ac8b (diff) | |
download | clic-0.13.tar.gz clic-0.13.tar.bz2 clic-0.13.tar.xz clic-0.13.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 'src/number.h')
-rw-r--r-- | src/number.h | 1 |
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; |