Indeed, it very much depends on the quality of the implementation of the runtime libraries whether the signed zero is respected or not. Anton’s article illustrates that nicely. (Tangential to this: see the post by Beliavsky - Fortran code snippets - #22 by Beliavsky - where he illustrates the use of complex numbers to determine the derivative of a real (!) function with just one evaluation.)
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Error Handling for negative real numbers | 34 | 3377 | July 1, 2020 | |
Wrong (strange outputs) of real numbers | 27 | 1433 | April 26, 2023 | |
Syntax of numeric constants | 13 | 445 | March 16, 2024 | |
Complex constants and variables
|
6 | 1124 | March 8, 2022 | |
Is it an inconcistency for real(10)?
|
8 | 601 | September 29, 2022 |