From f03026f5c2cde1eecfda273eaa52df10287f0f9e Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 29 Jan 2015 08:49:55 -0700 Subject: Fixed nasty subtraction bug when dealing with fractions. 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. --- src/number.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/number.h') 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: Bu::String toString() const; int digit( int iIdx ) const; + void setDigit( int iIdx, int iVal ); int getScale() const { return iScale; } int getEffectiveScale() const; -- cgit v1.2.3