I am trying to use the below code for one of my apps, and it requires the use of the exponential function:
YPO = ((590 * (Math.getExponent((n2 / n1) * 258.2))) / 1.12) / 60;
Where n1 and n2 are any number between 0.1 to 0.9
The problem is I am getting YPO = 0, but when I am calculating (n2 / n1) * 258.2, I am getting a decimal number. Its exponential shouldn't be zero, but still it is giving output as zero. Can someone please let me know if I am using the above mentioned function correctly?
the relevant code of my app: