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

%-6.2d, what does the .2 mean

Name: Anonymous 2011-02-18 17:21

Alright, so I've searched the book I'm learning from, as well as the internet, and can't seem to find an answer to this...so I am turning to /prog/ as my last resort:
in the conversion specification %-6.2g, what does the .2 mean?
I know that the -6 means that there are a maximum of 6 characters shown, and that it is left justified, but the book doesn't mention what the number following a decimal means.
Help is greatly appreciated, thanks in advance

Name: Anonymous 2011-02-18 18:41

>>10
That doesn't really help though...I need it in simple terms lol, let's have one more go at this:
0.0000009979
if it has two decimal places, does that mean it is going to give the exponential value of the second 0 that comes after the decimal?
0.0(0) <-- is it gonna return what the value of that bracketed zero is, if not, which zero would it be giving the value of...or am I completely wrong here?

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