The description for type float
in C mentions that the number of significant digits is 6
. However,
float f = 12345.6;
and then printing it using printf() does not print 12345.6
, it prints 12345.599609
. So what does "6 significant digits" (or "15 in case of a double
") mean for a floating point type?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…