Skip to content

decimal

relationalai.semantics.std.decimals
decimal(value: NumberValue, precision: int = 38, scale: int = 14) -> Variable

Create a decimal with specified precision and scale.

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

  • value

    (NumberValue) - The numeric value.
  • precision

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

    (int, default: 14) - The scale (number of decimal places).
  • Variable - A Variable representing the decimal value.