diff options
author | Mike Buland <mike@xagasoft.com> | 2013-04-19 15:36:29 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-04-19 15:36:29 -0600 |
commit | 7260c36973fc0ad7ff24294ff5540d64bf32c334 (patch) | |
tree | 72e74744a789d4c1acedfa1afd1a07219cce9931 /src/number.h | |
parent | 9ad1a65f4dcbc31b031556803d27dc688a16ff4a (diff) | |
download | clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.tar.gz clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.tar.bz2 clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.tar.xz clic-7260c36973fc0ad7ff24294ff5540d64bf32c334.zip |
Fractional divisoin works.
It doesn't round yet, and there's a chance I should be increasing the
precision, right now it keeps the precision of the left hand side
number.
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 c16dd55..3806300 100644 --- a/src/number.h +++ b/src/number.h | |||
@@ -32,6 +32,7 @@ public: | |||
32 | void set( const Number &sNum ); | 32 | void set( const Number &sNum ); |
33 | 33 | ||
34 | void divide( const Number &rhs, Number &q, Number &r ) const; | 34 | void divide( const Number &rhs, Number &q, Number &r ) const; |
35 | bool isZero() const; | ||
35 | 36 | ||
36 | operator Bu::String() const | 37 | operator Bu::String() const |
37 | { | 38 | { |