----- Original Message ----- From: "Doug Hunt" <[email protected]> . . > PDL folks: Any idea why -1 is interpreted as 'double' and '-1.' is > interpreted as 'float'??
(I'm not on the plplot list - this post may not appear there.) Is '-1' interpreted as 'double' or 'int' ? I note that both 'acos(int(-1))' and 'acos(double(-1))' return the same value. It would make sense that '-1' is being interpreted as an int. But it still doesn't make sense to me that acos(-1.0) returns a float value, not a double. As a quick consistency check, I find that sin(1.0) and sin(double(1.0)) both return the same value. If you want a float value you have to specifically request it with sin(float(1.0)). One would expect that acos (and asin) ought to behave in the same way, but they don't. Cheers, Rob _______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
