Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

printf is broken

Name: Anonymous 2014-09-09 6:44

printf("%.7g", 123.0); prints just "123", without trailing 0. Such is the consistency of C/C++

Name: Anonymous 2016-07-17 1:47

g doesn't mean double, it means use the shortest possible representation.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List