Provides typed operations for Mendix decimal values.
A typed Decimal value used by the decimal capability.
pub type Decimal
pub fn from_float(f f: Float) -> Decimal
Creates a decimal from a floating-point value.
pub fn from_int(n n: Int) -> Decimal
Creates a decimal from an integer.
pub fn from_string(s s: String) -> Decimal
Parses a decimal from text.
pub fn to_fixed(d d: Decimal, dp dp: Int) -> String
Formats a decimal with a fixed number of fraction digits.
pub fn to_float(d d: Decimal) -> Float
Converts a decimal to a floating-point value.
pub fn to_int(d d: Decimal) -> Int
Converts a decimal to an integer.
pub fn to_string(d d: Decimal) -> String
Serializes a decimal as text.