Talk:cpp/io/manip/setprecision

What is the effect of setting precision to 0? Or to -1?
 * std is signed, so the value 0 or -1 is stored in the stream object. As for what the standard library parsers and formatters do with it, see std, which sends off to std, which explains its effects: zero specifies zero decimal digits and negative values are ignored, the default of 6 is used --Cubbi (talk) 15:17, 5 January 2016 (PST)