real-proc 0.0.3

proc macros for floating point constants.
Documentation

Latest Release pipeline status coverage report

Description

Proc-macro for generating Frac from a decimal literal in const context.

Usage

use ::real_proc::frac;
use ::const_frac::Frac;

const CONST: Frac = frac!(const_frac, 3.14e-20);

let int = Frac::from_int(314);
let right = int * Frac::from_exp10(-22);

assert_eq!(CONST, right);

Project status

This package is in the very early stage.