diff options
author | Mike Buland <mike@xagasoft.com> | 2013-05-10 09:28:46 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-05-10 09:28:46 -0600 |
commit | ca9956381009cbe2d36ea8516d51516f7c49b9d3 (patch) | |
tree | e2dd13683057c16465be054862cdd91fee1bca2a /src/number.cpp | |
parent | dc0139c1880d1500b3e275b09781116613862f5f (diff) | |
download | clic-ca9956381009cbe2d36ea8516d51516f7c49b9d3.tar.gz clic-ca9956381009cbe2d36ea8516d51516f7c49b9d3.tar.bz2 clic-ca9956381009cbe2d36ea8516d51516f7c49b9d3.tar.xz clic-ca9956381009cbe2d36ea8516d51516f7c49b9d3.zip |
Added more helpers to Number.0.07
Diffstat (limited to 'src/number.cpp')
-rw-r--r-- | src/number.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/number.cpp b/src/number.cpp index cda829e..1b0efdc 100644 --- a/src/number.cpp +++ b/src/number.cpp | |||
@@ -45,6 +45,12 @@ Number &Number::operator=( const Number &rhs ) | |||
45 | return *this; | 45 | return *this; |
46 | } | 46 | } |
47 | 47 | ||
48 | Number &Number::operator=( const int32_t iNum ) | ||
49 | { | ||
50 | set( iNum ); | ||
51 | return *this; | ||
52 | } | ||
53 | |||
48 | Number Number::operator+( const Number &rhs ) const | 54 | Number Number::operator+( const Number &rhs ) const |
49 | { | 55 | { |
50 | return add( rhs, false ); | 56 | return add( rhs, false ); |