transpyle icon indicating copy to clipboard operation
transpyle copied to clipboard

High precision floating point literal values are not preserved exactly.

Open mbdevpl opened this issue 6 years ago • 0 comments

E.g. Fortran sqhalf = 0.7071067811865475244 becomes sqhalf = 0.7071067811865476 after transpiling.

The differences come from the not sufficient number of bits used to store the literals. This might not matter in some cases, but in other cases it might cause trouble.

mbdevpl avatar Feb 19 '18 09:02 mbdevpl