decimals
relationalai.semantics.std
Decimal manipulation functions.
.. deprecated:: 0.13.0
This module is deprecated. Use std.numbers instead.
This module provides functions for working with decimal numbers including type construction, parsing from strings, and querying decimal properties.
Functions
Section titled “Functions”Functions exposed by this module.
decimal() Create a decimal with specified precision and scale.
parse_decimal() Parse a string into a decimal with specified precision and scale.
parse() Parse a string into a decimal with the type specified by decimal concept.
is_decimal() Check if a concept represents a decimal number.
precision() Get the precision (total number of digits) of a decimal concept.
scale() Get the scale (number of decimal places) of a decimal concept.
size() Get the size (in bytes) of a decimal concept.