The user may input a float number but I will not need to perform any math on it; do I still need to enable float via
I could require user surround float with strings but that seems kludgy.#define MICROPY_FLOAT_IMPL
I could require user surround float with strings but that seems kludgy.#define MICROPY_FLOAT_IMPL
Admittedly I’m not sure what the best way to implement my thing.Damien wrote:Enabling floats is pretty much all or nothing. If you let users enter floats then they can do maths on them, e.g. 1.2+3.4. And if you accept floats in some places in your modules / C functions then the compiler must require some math support code.
You can disable the math module to save space, via MICROPY_PY_MATH.
What exactly do you need the floats for?