Gets the current value of the output format flag.


This function is obsolete. Beginning in Visual Studio 2015, it is not available in the CRT.


unsigned int _get_output_format();

Return Value

The current value of the output format flag.


The output format flag controls features of formatted I/O. At present the flag has two possible values: 0 and _TWO_DIGIT_EXPONENT. If _TWO_DIGIT_EXPONENT is set, the floating point numbers is printed with only two digits in the exponent unless a third digit is required by the size of the exponent. If the flag is zero, the floating point output displays three digits of exponent, using zeroes if necessary to pad the value to three digits.


Routine Required header
_get_output_format <stdio.h>

For more compatibility information, see Compatibility in the Introduction.

See also

Format Specification Syntax: printf and wprintf Functions
printf, _printf_l, wprintf, _wprintf_l
printf_s, _printf_s_l, wprintf_s, _wprintf_s_l