SubCoin

Type Alias SubCoin 

Source
pub type SubCoin = Rational;

Aliased Type§

pub struct SubCoin(/* private fields */);

Implementations§

Source§

impl SubCoin

Source

pub fn from_base10_f32(f: f32) -> Self

Converts base 10 floats to SubCoin. This is the format used by blockfrost for ex units Warning: If the passed in float was not meant to be base 10 this might result in a slightly inaccurate fraction.