The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _get_output_format.

Gets the current value of the output format flag.

System_CAPS_ICON_important.jpg Important

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

unsigned int _get_output_format();  

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.

RoutineRequired header

For more compatibility information, see Compatibility in the Introduction.

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

printf, _printf_l, wprintf, _wprintf_l
printf_s, _printf_s_l, wprintf_s, _wprintf_s_l
printf Type Field Characters