rust-decimal icon indicating copy to clipboard operation
rust-decimal copied to clipboard

Support more trigonometric functions

Open PaddiM8 opened this issue 2 years ago • 1 comments

It seems like arc functions and hyperbolic functions are lacking, which is a bit limiting. Having these would make it almost as feature-rich as f64.

PaddiM8 avatar Jan 01 '22 20:01 PaddiM8

Since none of the trig functions necessarily maintain precision (or have perfect precision in the first place), it really might actually be better to first convert the Decimal to f64, do whatever trig function, then convert the result back.

Instead of giving a false impression to users that, somehow, Decimal trig functions are more precise than f64 ones (they are not).

schungx avatar Jan 02 '22 03:01 schungx