Non-radian trig functions - no double precision
Monkey Forums/Monkey Bug Reports/Non-radian trig functions - no double precision
| ||
#CPP_DOUBLE_PRECISION_FLOATS=True Print "Cos " + Cos( 90.0 ) Print "Cosr " + Cosr( 3.141592653589793 / 2.0 ) Output: Cos 1.2167964475066282e-08 Cosr 6.123233995736766e-17 I'm guessing there must be an explicit float conversion done internally in translation that evades the C++ compiler. EDIT: The constants in monkey.math could become an issue with double precision too, if people don't know they are SP |