Skip to content

is_number

relationalai.semantics.std.numbers
is_number(number: Concept) -> bool

Check if a concept represents a number.

  • number

    (Concept) - The Concept to check.
  • bool - True if the concept is a NumberConcept.

Check if a concept is a number:

>>> numbers.is_number(Product.price)