I have a cpp code that is interfaced to a fortran code. The fortran code needs input arguments given by the cpp one. During the transfer there is a problem with the rounding, giving a little error than then cause major changes. For example -5.35300000 in cpp become -5.35299998 in fortran. In cpp as well as in fortran all variables are defined as double type variable. I compile gcc-9.3 version.
If instead of compiling with gcc on linux, I compile with intell compiler on windows I don't have this rounding problem.
How can I overcome this rounfing issue with gcc?
Thanks