06-25-2020 12:28 AM
-9.998571264E+18 ,i want to calculate the exponential of this no. ,my result comes zero plz help ,
06-25-2020 12:57 AM - edited 06-25-2020 12:58 AM
Hi ajit,
@ajit107 wrote:
-9.998571264E+18 ,i want to calculate the exponential of this no. ,my result comes zero plz help ,
So you want to calculate e^(-1E+19) - and now you wonder why you get 0 as result?
It's the correct answer (in terms of floating point algebra)! What is your expected result?
Using LabVIEW I get these results:
e^(-100) = 3.72e-44
e^(-200) = 1.38e-87
e^(-300) = 5.15e-131
e^(-500) = 7.12e-218
e^(-700) = 9.86e-305
e^(-745) = 4.94e-324
06-25-2020 03:06 AM
As Gerd already said, zero is correct. We cannot help you to get a different result.