diff options
author | Mike Buland <mike@xagasoft.com> | 2013-04-16 14:53:02 -0600 |
---|---|---|
committer | Mike Buland <mike@xagasoft.com> | 2013-04-16 14:53:02 -0600 |
commit | eda2bffe27415d28813badc5db572d1e4b20c3de (patch) | |
tree | 481aabb31e47588bb587ae8ec320f80fcede8cdf /src/number.cpp | |
parent | 7cfca326d8f824d3749ece6ad63a793197bf6c9d (diff) | |
download | clic-eda2bffe27415d28813badc5db572d1e4b20c3de.tar.gz clic-eda2bffe27415d28813badc5db572d1e4b20c3de.tar.bz2 clic-eda2bffe27415d28813badc5db572d1e4b20c3de.tar.xz clic-eda2bffe27415d28813badc5db572d1e4b20c3de.zip |
Added formatter for Number.
I'm a little embarassed that I didn't do this from the start, made the
code so much easier to read.
Diffstat (limited to 'src/number.cpp')
-rw-r--r-- | src/number.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/number.cpp b/src/number.cpp index 12a86e0..b045e7c 100644 --- a/src/number.cpp +++ b/src/number.cpp | |||
@@ -431,3 +431,8 @@ void Number::divide( const Number &rhs, Number &q, Number &r ) const | |||
431 | // Bu::println("Complete: q = %1, r = %2").arg( q.toString() ).arg( r.toString() ); | 431 | // Bu::println("Complete: q = %1, r = %2").arg( q.toString() ).arg( r.toString() ); |
432 | } | 432 | } |
433 | 433 | ||
434 | Bu::Formatter &operator<<( Bu::Formatter &f, const Number &n ) | ||
435 | { | ||
436 | return f << n.toString(); | ||
437 | } | ||
438 | |||