Aatch / ramp

RAMP - Rust Arithmetic in Multiple Precision
Apache License 2.0
263 stars 38 forks source link

Float Support #115

Open Light-Wizzard opened 4 years ago

Light-Wizzard commented 4 years ago

I would like to know the status of float support, I have found a project called float, but is has not been updated since 2015, against ramp .2: float

Currently, I am using Bignumber.js, and an eval.js to use an eval, basically I just pass it an expression. My numbers are very large, and Floating point is not accurate enough. My App is going to be a WebAssembly app, and I would like to do it all in rust, currently I am using Qt.

I need to be able to fix the decimal places in a float, and not the precision, I am looking for a way to do this in rust, is this possible now?

rozbb commented 4 years ago

The only thing supported by ramp is the Rational type, which has arbitrary precision. This library isn't really under active development, so that's pretty much all I can offer right now.