timtrust123
Programmer
If i run the following code
$number = (5.74462/100 - 1.0001);
print $number ** 0.56,"\n";
I get the this printed "-1.#IND"
However, if i run the following (change the $number to a number)
$number = 0.9426538;
print $number ** 0.56,"\n";
I get the correct answer printed (-0.26646)
It seem that if it load a number directly into the variable there is no problem but if the variable is based on a formula it does not work.
Any Maths experts out there who can explain what is happening.
Cheers
Tim
$number = (5.74462/100 - 1.0001);
print $number ** 0.56,"\n";
I get the this printed "-1.#IND"
However, if i run the following (change the $number to a number)
$number = 0.9426538;
print $number ** 0.56,"\n";
I get the correct answer printed (-0.26646)
It seem that if it load a number directly into the variable there is no problem but if the variable is based on a formula it does not work.
Any Maths experts out there who can explain what is happening.
Cheers
Tim