summaryrefslogtreecommitdiff
path: root/py/formatfloat.h
diff options
context:
space:
mode:
Diffstat (limited to 'py/formatfloat.h')
-rw-r--r--py/formatfloat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/formatfloat.h b/py/formatfloat.h
index 9a1643b4d..7b1414672 100644
--- a/py/formatfloat.h
+++ b/py/formatfloat.h
@@ -29,6 +29,7 @@
#include "py/mpconfig.h"
#if MICROPY_PY_BUILTINS_FLOAT
+#define MP_FLOAT_REPR_PREC (99) // magic `prec` value for optimal `repr` behaviour
int mp_format_float(mp_float_t f, char *buf, size_t bufSize, char fmt, int prec, char sign);
#endif