I have a situation when the classic representation error in Python started to be a problem: I need them to be used for Matrix operations in Numpy and the decimal
The real issue here is to identify how the representation error could start to be a problem in the first place.
You should not be using the representation for human-readable printing of floats, you should be using for example str.format
or some other presentation method.
Keep your numbers as numbers for all calculations (whether you do that with floats or Decimals or whatever...) and only round or truncate things at presentation.