Module decimal

Source

Traitsยง

DecimalCast ๐Ÿ”’
A utility trait that provides checked conversions between decimal types inspired by NumCast

Functionsยง

cast_decimal_to_decimal ๐Ÿ”’
cast_decimal_to_decimal_error ๐Ÿ”’
cast_decimal_to_decimal_same_type ๐Ÿ”’
cast_decimal_to_float ๐Ÿ”’
cast_decimal_to_integer ๐Ÿ”’
cast_floating_point_to_decimal ๐Ÿ”’
cast_string_to_decimal ๐Ÿ”’
Cast Utf8 to decimal
convert_to_bigger_or_equal_scale_decimal ๐Ÿ”’
convert_to_smaller_scale_decimal ๐Ÿ”’
generic_string_to_decimal_cast ๐Ÿ”’
parse_string_to_decimal_native ๐Ÿ”’
Parses given string to specified decimal native (i128/i256) based on given scale. Returns an Err if it cannot parse given string.
string_to_decimal_cast ๐Ÿ”’
string_view_to_decimal_cast ๐Ÿ”’