"SemanticInteger" (Interpreter Type)

Integer number in a standard format or in natural language.


Allowed Forms

  • 1234positive integers
    -1234negative integers
    12,456integers with separators
    twointegers in natural language

Restriction Specifications

  • Restricted["SemanticInteger",{{choices1,}}]one among choices
    Restricted["SemanticInteger",max]an integer below max
    Restricted["SemanticInteger",{min,max}]an integer between min and max
    Restricted["SemanticInteger",{min,max,s}]an integer between min and max, with step s



Basic Examples  (2)

Interpret integer numbers:

Restrict in a range:

Restrict to the first five prime numbers:

Restrict to odd numbers below 100:

Introduced in 2014