Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

0.0000000567 becomes 0.000000000, why?

$
0
0

Hi, there is a parameter sigma which should be equal to 5.67*10**(-8) in my programming.  When the code is like this

          sigma= 5.67*10**(-8)

         L=0.1 !m

         a=1.0

         e=1.0

         ua=2000.0 !K

         dx=L/21.0

         t=sigma*dx*(a*ua**4-e*298.0**4)

        print*, t

the results is t=0.00000000

However, when the code is like this

         sigma= 0.0000000567

         L=0.1 !m

         a=1.0

         e=1.0

         ua=2000.0 !K

         dx=L/21.0

         t=sigma*dx*(a*ua**4-e*298.0**4)

        print*, t

I get the exact result that t=4317.871

I don't know why I got two different results because of the sigma function. Could you tell me why? 

                 


Viewing all articles
Browse latest Browse all 5691

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>