Skip to content

scale

relationalai.semantics.std.numbers
scale(number: NumberConcept) -> int

Get the scale (number of decimal places) of a number concept.

  • int - The scale of the number.

Get the scale of a number concept:

>>> numbers.scale(Product.price)