diff options
author | Mike Buland <mike@xagasoft.com> | 2015-01-07 09:53:14 -0700 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2015-01-07 09:53:14 -0700 |
commit | e64cb84fe43660818f7d6eff2954147495b1ac8b (patch) | |
tree | 8e89978bc4a72677a8728d62eb850d81c9b92d46 /src/number.cpp | |
parent | 4d0ab515cc4142b22247e26f1b57b5cd0a6b31d5 (diff) | |
download | clic-e64cb84fe43660818f7d6eff2954147495b1ac8b.tar.gz clic-e64cb84fe43660818f7d6eff2954147495b1ac8b.tar.bz2 clic-e64cb84fe43660818f7d6eff2954147495b1ac8b.tar.xz clic-e64cb84fe43660818f7d6eff2954147495b1ac8b.zip |
Fixed parsing bug, added unit tests, debug cleanup.0.12
There was an issue with order of operations outside of parenthesies,
easily solved.
Diffstat (limited to '')
-rw-r--r-- | src/number.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/number.cpp b/src/number.cpp index 05e310c..eb803be 100644 --- a/src/number.cpp +++ b/src/number.cpp | |||
@@ -662,11 +662,11 @@ Number Number::toRadix( int iNewRadix, int iNewScale ) const | |||
662 | n.set( iNewRadix ); | 662 | n.set( iNewRadix ); |
663 | while( !me.isZero() ) | 663 | while( !me.isZero() ) |
664 | { | 664 | { |
665 | Bu::println("%1 %% %2 = %3").arg( me ).arg( n ).arg( me%n ); | 665 | // Bu::println("%1 %% %2 = %3").arg( me ).arg( n ).arg( me%n ); |
666 | int dig = (me%n).toInt32(); | 666 | int dig = (me%n).toInt32(); |
667 | ret.aInt.append( dig ); | 667 | ret.aInt.append( dig ); |
668 | me = me / n; | 668 | me = me / n; |
669 | Bu::println("New digit: %1 (%2)").arg( dig ).arg( me ); | 669 | // Bu::println("New digit: %1 (%2)").arg( dig ).arg( me ); |
670 | } | 670 | } |
671 | 671 | ||
672 | return ret; | 672 | return ret; |