Open
Description
Expected Behavior
The words "string" and "trigonometric function" should not be anywhere near each other
Actual Behavior
The current implementations of the sin
, cos
, and tan
functions (but not the asin
, acos
, and atan
functions) stringify inputs to 10 decimal digits then un-stringify them.
This was introduced in #422 so that values which should be 0 but aren't due to rounding error (e.g. sin(180)) are rounded to 0. There's likely a much faster way to do this, though (see this benchmark).