mirror of
https://github.com/louisrubet/rpn
synced 2024-12-29 10:23:59 +01:00
std, fix, sci functions in GENERAL section
This commit is contained in:
parent
68e4c4b519
commit
07e741dac6
1 changed files with 0 additions and 21 deletions
|
@ -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;
|
||||
}
|
Loading…
Reference in a new issue