// void nop() { // nop } void good_bye() { ERR_CONTEXT(ret_good_bye); } void verbose() { MIN_ARGUMENTS(1); ARG_IS_OF_TYPE(0, cmd_number); g_verbose = (int)getf(); } void help() { cout<<"rpn - HP28S reverse polish notation language simulator"<=1) { ARG_IS_OF_TYPE(0, cmd_number); g_default_precision = (int)getf(); } g_current_precision = g_default_precision; g_float_mode = mode_std; cout.precision(g_current_precision); cout.unsetf(ios_base::floatfield); } void fix() { MIN_ARGUMENTS(1); ARG_IS_OF_TYPE(0, cmd_number); g_current_precision = (int)getf(); g_float_mode = mode_fix; cout << setprecision(g_current_precision) << fixed; } void sci() { MIN_ARGUMENTS(1); ARG_IS_OF_TYPE(0, cmd_number); g_current_precision = (int)getf(); g_float_mode = mode_sci; cout << setprecision(g_current_precision) << scientific; }