- Implement
num_traits::{Zero, One, FromPrimitive, ToPrimitive, Num, Signed, Euclid, Pow}
forFBig
(#19) - Implement
rand::distributions::uniform::UniformSampler
forFBig
throughcrate::rand::UniformFBig
- Implement
rand::distributions::{Open01, OpenClosed01, Standard}
forFBig
- Implement
dashu_base::Inverse
forFBig
- Implement
rand::distributions::uniform::SampleUniform
forFBig
. - Implement
serde::{Serialize, Deserialize}
forFBig
andRepr
- Implement
Rem
trait forFBig
- Add support of random floating point numbers generation through
crate::rand::Uniform01
andcrate::rand::UniformFBig
. - Add support for serialization from/to PostgreSQL arguments through
diesel::{deserialize::FromSql, serialize::ToSql}
andpostgres_types::{FromSql, ToSql}
. - Add
from_str_native()
forRepr
- Add
to_f32()
,to_f64()
forRepr
, and these two methods supports all bases for bothRepr
andFBig
. - Add
to_int()
forRepr
, which is equivalent toFBig::trunc()
- Add
TryFrom<FBig>
forUBig
andIBig
- Add
round()
forFBig
- Add
rand_v08
andnum-traits_v02
feature flags to prevent breaking changes due to dependency updates in future - Re-export operation traits through the
ops
module.
- Conversion from FBig to
f32
/f64
support subnormal values now. - Add a
split_at_point()
function toFBig
- Implement
core::iter::{Sum, Product}
forFBig
- Implement
powf
,sqrt
forFBig
- Support basic arithmetic operations (
add
/sub
/mul
/div
/exp
/ln
) and base conversion.
- Support generating base math constants (E, Pi, SQRT2, etc.)
- Support operations with inf
- Implement Random generator
- Implement Serde serialization
- Implememt cbrt, nth_root
- Implement log
- Create operations benchmark
- Benchmark against crates: rug, twofloat, num-bigfloat, rust_decimal, bigdecimal, scientific
- Implement more formatting traits
- Determine if caches for constants (especially ln2, pi) should be stored in the context (using RC)
- Other math functions: sin/cos/tan/etc.
- Support more rounding modes
- Faster base conversion (references: dragonbox, ryu, Articles by Lemire, Fast number parsing by Lemire
- Specialize algorithms in the range where IBig is inlined