std, fix, sci functions in GENERAL section

This commit is contained in:
Louis RUBET 2014-09-05 09:47:21 +02:00
parent 68e4c4b519
commit 07e741dac6

View file

@ -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;
}