Description

Utilities for calculating floating point constants in const context. This package is not intented heavy numerial calculation but just evaluating floating point constants in const contest.

Badges

Latest Release pipeline status coverage report

Usage

``` 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); ```

Project status

This package is in the very early stage.