I am new to Fortran90 , I have write a simple program to add two floating point numbers as follows:
program Numbers_sum
implicit none
REAL :: sum
sum = 1.6+2
print*,"Sum =", sum
end
I am getting the answer as Sum = 3.5999999
Why it is not getting 3.6
. How Can I make this program to get the exact answer?? Any help will be appreciated.