Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fortran Best Practices: Floating Point Numbers comparison #203

Open
band-a-prend opened this issue Nov 11, 2022 · 1 comment
Open

Fortran Best Practices: Floating Point Numbers comparison #203

band-a-prend opened this issue Nov 11, 2022 · 1 comment
Labels
section: learn Relevant for the learn section on the webpage

Comments

@band-a-prend
Copy link
Contributor

The Floating Point Number section of Fortran Best Practices could be extended with 2 subsections:

  1. comparison of two real numbers;
  2. 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.

@band-a-prend band-a-prend changed the title Fortran Best Practices: Floating Point Numbers section extension Fortran Best Practices: Floating Point Numbers comparison Nov 21, 2022
@awvwgk awvwgk added the section: learn Relevant for the learn section on the webpage label Dec 13, 2022
@PANKAJ11111111
Copy link

Please give chance i fix this problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
section: learn Relevant for the learn section on the webpage
Projects
None yet
Development

No branches or pull requests

3 participants