- May
- 13,750
- 209
What would cause this command,
to produce this output:
(five characters after the decimal point) It doesn't happen often.
Notice that I'm forcing the "+" on positive values. Can I get Printf to do that automatically?
Code:
Printf(L"Estimated local time offset: %s%3.3f seconds\r\n\r\n", fOffset > 0 ? L"+" : L"", fOffset);
Code:
Estimated local time offset: -0.00000 seconds
Notice that I'm forcing the "+" on positive values. Can I get Printf to do that automatically?