Cast the return value of a function that returns a floating point type to ensure predictable program execution.
Section Subclause 6.8.6.4, paragraph 2, of the C Standard [ISO/IEC 9899:2011] states:
...
Bibliography
[ISO/IEC 9899:2011] | Section Subclause 6.8.6.4, "The return Statement"Annex F, "IEC 60559 Floating-Point Arithmetic" |
[WG14/N1396] |
...