https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63352

--- Comment #18 from Richard PALO <richard at netbsd dot org> ---
Created attachment 33676
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33676&action=edit
another test program

after coming across
http://stackoverflow.com/questions/16839658/printf-width-specificer-to-maintain-precision-of-floating-point-value
I modified the test program to the attached, and here is the output:
FLT_EVAL_METHOD = 2
DBL_MANT_DIG = 53
DECIMAL_DIG = 21
DBL_DIG = 15
e precision 10 => +3.3333333333e-01
f precision 10 => +0.3333333333
e precision 11 => +3.33333333333e-01
f precision 11 => +0.33333333333
e precision 12 => +3.333333333333e-01
f precision 12 => +0.333333333333
e precision 13 => +3.3333333333333e-01
f precision 13 => +0.3333333333333
e precision 14 => +3.33333333333333e-01
f precision 14 => +0.33333333333333
e precision 15 => +3.333333333333333e-01
f precision 15 => +0.333333333333333
e precision 16 => +3.3333333333333332e-01
f precision 16 => +0.3333333333333333
e precision 17 => +3.33333333333333312e-01
f precision 17 => +0.33333333333333332
e precision 18 => +3.333333333333333148e-01
f precision 18 => +0.333333333333333312
e precision 19 => +3.3333333333333331483e-01
f precision 19 => +0.3333333333333333148
e precision 20 => +3.33333333333333314830e-01
f precision 20 => +0.33333333333333331483
e precision 21 => +3.333333333333333148296e-01
f precision 21 => +0.333333333333333314830
e precision 22 => +3.3333333333333331482962e-01
f precision 22 => +0.3333333333333333148296
e precision 23 => +3.33333333333333314829616e-01
f precision 23 => +0.33333333333333331482962
e precision 24 => +3.333333333333333148296163e-01
f precision 24 => +0.333333333333333314829616
e precision 25 => +3.3333333333333331482961626e-01
f precision 25 => +0.3333333333333333148296163

Reply via email to