You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Floating Point Number section of Fortran Best Practices could be extended with 2 subsections:
comparison of two real numbers;
undesirability of using real as iterator within do loops (it was deprecated in Fortran95 standard).
The motivation.
It's common problem for all programming languages when beginner programmer tries to compare fooating points numbers especially using if statement. It would be usefull to demonstrate more accurate approaches (with use of intrinsic procedures?) of comparing numbers to avoid accuracy and computational issues.
The second problem comes from first one and could results in computational issues.
The text was updated successfully, but these errors were encountered:
band-a-prend
changed the title
Fortran Best Practices: Floating Point Numbers section extension
Fortran Best Practices: Floating Point Numbers comparison
Nov 21, 2022
The Floating Point Number section of Fortran Best Practices could be extended with 2 subsections:
real
numbers;real
as iterator withindo
loops (it was deprecated in Fortran95 standard).The motivation.
It's common problem for all programming languages when beginner programmer tries to compare fooating points numbers especially using
if
statement. It would be usefull to demonstrate more accurate approaches (with use of intrinsic procedures?) of comparing numbers to avoid accuracy and computational issues.The second problem comes from first one and could results in computational issues.
The text was updated successfully, but these errors were encountered: