Skip to content

is_number

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

Check if a concept represents a number.

Parameters

  • number

    (Concept) - The Concept to check.

Returns

  • bool - True if the concept is a NumberConcept.

Examples

Check if a concept is a number:

numbers.is_number(Product.price)