Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28454 Discussions

For new programmers - Understanding Floating Point Numbers (and peculiarities)

Honored Contributor III

I came across this video on YouTube that does a good (not too technical) explanation of floating point numbers, and why they are approximations for some numbers and the peculiar results that may occur. For example (A > 0.0 .and. B > 0.0 .and. A+B == A) can result in .true.


Jim Dempsey

0 Replies