fix(test): change float comparison equality strictness of copies
requested to merge 789-core-test-comparison-of-floats-should-be-strict-when-testing-equality-of-two-copies into dev
Description
Float numbers may lose precision when using arithmetic operations on them, which is why, in order to check if two floats are equal, they are typically compared with a margin of error. However, there mustn't be any error of that kind when the float value is copied, since no arithmetic operations are used. This MR will impose stricter equality for floats wherever it is relevant.
Closes #789 (closed)
How to test it?
Run the unit tests, they should still pass.