diff options
Diffstat (limited to 'snprintf.c')
-rw-r--r-- | snprintf.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -69,6 +69,14 @@ static const struct { { "%.4f", 1.06125, "1.0612" }, { "%.2f", 1.375, "1.38" }, { "%.1f", 1.375, "1.4" }, + { "%.15f", 1.1, "1.100000000000000" }, + { "%.16f", 1.1, "1.1000000000000001" }, + { "%.17f", 1.1, "1.10000000000000009" }, + { "%.2e", 1500001.0, "1.50e+06" }, + { "%.2e", 1505000.0, "1.50e+06" }, + { "%.2e", 1505000.00000095367431640625, "1.51e+06" }, + { "%.2e", 1505001.0, "1.51e+06" }, + { "%.2e", 1506000.0, "1.51e+06" }, /* correctness in DBL_DIG places */ { "%.15g", 1.23456789012345, "1.23456789012345" }, |