Utilities for calculating floating point constants in const context.
This package is not intended heavy numerical calculation but just evaluating floating point constants in const contest.
```rust use ::const_frac::Frac;
const RAD2DEG: f64 = Frac::fromratio(360, 2, 0).mul(Frac::fromexppi(-1)).tof64();
assert_eq!(RAD2DEG * std::f64::consts::PI, 180f64); ```
This package has the following feature flags. No feature flags are enabled by default.
std
Enable std support.tokenize
Enable [Parse] and [ToToken] implementation for Frac when using in implementation of a procedural macro.ratio
Enable [num_rational::BigRational] supports.This package is in the very early stage.