Struct port_variable_rate_lending_instructions::math::Decimal [−][src]
pub struct Decimal(pub U192);
Expand description
Large decimal values, precise to 18 digits
Tuple Fields
0: U192
Implementations
Create scaled decimal from percent value
Return raw scaled value if it fits within u128
Create decimal from scaled value
Round scaled decimal to u64
Ceiling scaled decimal to u64
Floor scaled decimal to u64
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Divide
Divide
Divide
Multiply
Multiply
Multiply
Auto Trait Implementations
impl RefUnwindSafe for Decimal
impl UnwindSafe for Decimal
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more