Trait fdec::WithScale [−][src]
pub trait WithScale<T> {
fn with_scale(v: T, scale: usize) -> Self;
}
Expand description
Trait of types that can create values from other types with scaling.
Required methods
fn with_scale(v: T, scale: usize) -> Self
fn with_scale(v: T, scale: usize) -> Self
Creates a number from the given value, applying the given scale to it.