diff options
author | Mike Buland <mike@xagasoft.com> | 2013-04-19 20:15:19 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-04-19 20:15:19 -0600 |
commit | 868af20101c99649b41489e8fcd2e118e20e76ec (patch) | |
tree | cf3ab6febeca66b670b030b5e5eb7549cda039af /src/number.h | |
parent | 06e46b0e904ca279e6e397c9f9040cf0f059b930 (diff) | |
download | clic-868af20101c99649b41489e8fcd2e118e20e76ec.tar.gz clic-868af20101c99649b41489e8fcd2e118e20e76ec.tar.bz2 clic-868af20101c99649b41489e8fcd2e118e20e76ec.tar.xz clic-868af20101c99649b41489e8fcd2e118e20e76ec.zip |
Added routines to get/set scale.
Diffstat (limited to 'src/number.h')
-rw-r--r-- | src/number.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/number.h b/src/number.h index 3806300..8c9cd28 100644 --- a/src/number.h +++ b/src/number.h | |||
@@ -43,6 +43,9 @@ public: | |||
43 | 43 | ||
44 | int digit( int iIdx ) const; | 44 | int digit( int iIdx ) const; |
45 | 45 | ||
46 | int getScale() const { return iScale; } | ||
47 | void setScale( int iNewScale ); | ||
48 | |||
46 | private: | 49 | private: |
47 | Number add( const Number &rhs, bool bSub ) const; | 50 | Number add( const Number &rhs, bool bSub ) const; |
48 | 51 | ||