commit | 132a286c396457e372e83b24b99238176dbc8239 | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <npitre@baylibre.com> | Wed Jun 19 12:19:38 2019 -0400 |
committer | Anas Nashif <anas.nashif@intel.com> | Sun Jul 14 23:07:44 2019 -0400 |
tree | 3aaa32c51c3cd894ed9c6f6a47fb704616f429ef | |
parent | f286eda6f0c6841386faac6fb28906460d1748ef [diff] |
prf.c: fix display of float exponent >= 100 The code accounts only for 2 exponent digits even though the exponent may grow up to 308. Before this change, printf("%g", 1e300) would produce "1e+N0". Signed-off-by: Nicolas Pitre <npitre@baylibre.com>