From 0b7e2eeb19044b84d39e054204ff9f9b6e6b23d1 Mon Sep 17 00:00:00 2001 From: Louis Date: Fri, 24 Apr 2015 09:29:59 +0200 Subject: [PATCH] Default precision to 12 digits, dec, bin and oct alignment to 8 --- src/rpn.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rpn.cpp b/src/rpn.cpp index 8466a71..e19f6f1 100644 --- a/src/rpn.cpp +++ b/src/rpn.cpp @@ -131,7 +131,7 @@ struct number : public object } __attribute__((packed)); number::mode_enum number::s_default_mode = number::std; number::mode_enum number::s_mode = number::s_default_mode; -int number::s_default_precision = 20; +int number::s_default_precision = 12; int number::s_current_precision = number::s_default_precision; struct binary : public object @@ -303,8 +303,8 @@ void object::show(ostream& stream) switch(((binary*)this)->s_mode) { case binary::dec: stream<_value<<" d"; break; - case binary::hex: stream<_value<<" h"; break; - case binary::oct: stream<_value<<" o"; break; + case binary::hex: stream<_value<<" h"; break; + case binary::oct: stream<_value<<" o"; break; case binary::bin: { string mybin;