From ae715c98abf1d1c8f43322b289aacd4e32c08add Mon Sep 17 00:00:00 2001 From: Louis RUBET Date: Fri, 5 Sep 2014 09:47:21 +0200 Subject: [PATCH] std, fix, sci functions in GENERAL section --- src/rpn-mode.h | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 src/rpn-mode.h diff --git a/src/rpn-mode.h b/src/rpn-mode.h deleted file mode 100644 index c728db2..0000000 --- a/src/rpn-mode.h +++ /dev/null @@ -1,21 +0,0 @@ -void std() -{ - cout << setprecision(FLOATING_DEFAULT_PRECISION); - cout.unsetf(ios_base::floatfield); -} - -void fix() -{ - MIN_ARGUMENTS(1); - ARG_IS_OF_TYPE(0, cmd_number); - - cout << setprecision((int)getf()) << fixed; -} - -void sci() -{ - MIN_ARGUMENTS(1); - ARG_IS_OF_TYPE(0, cmd_number); - - cout << setprecision((int)getf()) << scientific; -}