diff options
author | Mike Buland <mike@xagasoft.com> | 2013-04-22 13:04:25 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-04-22 13:04:25 -0600 |
commit | d7ccd9c4d8e5a5bb4f12b36b3e4ad3105c5a9317 (patch) | |
tree | a7b6753b6a049be68a91749aaae8da23979ed83a /src/number.h | |
parent | a520fc5740da7d50a289357e4e6e529b826454e7 (diff) | |
download | clic-d7ccd9c4d8e5a5bb4f12b36b3e4ad3105c5a9317.tar.gz clic-d7ccd9c4d8e5a5bb4f12b36b3e4ad3105c5a9317.tar.bz2 clic-d7ccd9c4d8e5a5bb4f12b36b3e4ad3105c5a9317.tar.xz clic-d7ccd9c4d8e5a5bb4f12b36b3e4ad3105c5a9317.zip |
Fixed bug in multiply, added toInt32 function.
Multiply was ignoring the zero column, which was odd. I fixed this
other places but apparently missed multiply.
Diffstat (limited to '')
-rw-r--r-- | src/number.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/number.h b/src/number.h index 8c9cd28..0816a17 100644 --- a/src/number.h +++ b/src/number.h | |||
@@ -46,6 +46,8 @@ public: | |||
46 | int getScale() const { return iScale; } | 46 | int getScale() const { return iScale; } |
47 | void setScale( int iNewScale ); | 47 | void setScale( int iNewScale ); |
48 | 48 | ||
49 | int32_t toInt32() const; | ||
50 | |||
49 | private: | 51 | private: |
50 | Number add( const Number &rhs, bool bSub ) const; | 52 | Number add( const Number &rhs, bool bSub ) const; |
51 | 53 | ||