diff options
Diffstat (limited to 'py/formatfloat.c')
-rw-r--r-- | py/formatfloat.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/py/formatfloat.c b/py/formatfloat.c index 58a423e38c..9ff80d9f63 100644 --- a/py/formatfloat.c +++ b/py/formatfloat.c @@ -388,10 +388,6 @@ int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, ch } *rs = '1'; } - if (fp_isless1(f) && fmt == 'f') { - // We rounded up to 1.0 - prec--; - } } // verify that we did not overrun the input buffer so far |