Trying to understand rounding - in python -

What is the shortcoming of the Decimal module for what’s being requested/explored here?

1 Like

would like to have options like: ‘mpd_t xMP = 1E23’, and / or
‘mpd_t_from_bin64( double x )’ and / or ‘(mpd_t)x’ instead of
creating variables, dealing with pointers, working with strings …
and other way around ‘(double)xMP’ or 'double_from_mpd_t( xMP ),
all from a perspective to use in C-code, but could be useful for
python too? Could be faster, is easier to write …