summaryrefslogtreecommitdiff
path: root/src/number.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-16 14:53:02 -0600
committerMike Buland <mike@xagasoft.com>2013-04-16 14:53:02 -0600
commiteda2bffe27415d28813badc5db572d1e4b20c3de (patch)
tree481aabb31e47588bb587ae8ec320f80fcede8cdf /src/number.cpp
parent7cfca326d8f824d3749ece6ad63a793197bf6c9d (diff)
downloadclic-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 '')
-rw-r--r--src/number.cpp5
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
434Bu::Formatter &operator<<( Bu::Formatter &f, const Number &n )
435{
436 return f << n.toString();
437}
438