Macro agb_fixnum::num

source ·
macro_rules! num {
    ($value:literal) => { ... };
}
Expand description

Can be thought of having the signature num!(float) -> Num<I, N>.

let n: Num<i32, 8> = num!(0.75);
assert_eq!(n, Num::new(3) / 4, "0.75 == 3/4");