Setting the global Data type and rounding mode with Python

Viewed 15

I am trying to do some computation with different data types. I want to try floating and fixed-point arithmetic.

For fixed-point arithmetic, I want to set the format globally e.g. integral part equal 3 digits and fractional part equal 4 digits (123.5848).

For floating-point, I'd like to to globally set the data types to either decimal32, decimal64 or decimal128 of the ieee754 - 2008 standard.

Can you advise how to do it?

0 Answers
Related