Closed ckaran closed 5 years ago
No plans -- most values of those functions are irrational. I would stick to floating point for this, or convert your Ratio
to/from floating point if needed.
Actually, that brings up a different problem for me; for some reason to_f64()
doesn't work for me; I don't know why. The compiler keeps acting like the ToPrimitive
trait isn't implemented. Should I use something else?
Oh, we have FromPrimitive
, but not the other way yet -- issue #4, and a PR I need to review in #52.
Got it! Any idea when the PR might land? Otherwise I need to roll my own... 😒
After talking with @cuviper about all the issues surrounding precision (via issue #53), I think that this should be closed. There just isn't any way of implementing the transcendental functions in general.
Are there any plans for supporting the various trigonometric functions? I could really use
sine()
andcosine()
right about now...