real-proc

Crates.ioreal-proc
lib.rsreal-proc
version0.0.3
sourcesrc
created_at2022-03-01 14:21:33.643661
updated_at2022-03-13 05:53:21.555307
descriptionproc macros for floating point constants.
homepagehttps://gitlab.com/fton/real-proc
repositoryhttps://gitlab.com/fton/real-proc
max_upload_size
id541571
size9,332
(fton)

documentation

README

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.

Commit count: 16

cargo fmt