Skip to content

parse_decimal

relationalai.semantics.std.decimals
parse_decimal(value: str, precision: int = 38, scale: int = 14) -> Expression

Parse a string into a decimal with specified precision and scale.

.. deprecated:: 0.13.0 Use numbers.parse_number(value, precision, scale) <std.numbers.parse_number> instead.

  • value

    (str) - The string value to parse.
  • precision

    (int, default: 38) - The precision (total number of digits).
  • scale

    (int, default: 14) - The scale (number of decimal places).
  • Expression - An Expression computing the parsed decimal.