# Wolfram Language & System 10.3 (2015)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.
WOLFRAM LANGUAGE INTERPRETER TYPE

# "SemanticNumber" (interpreter type)

Number in a standard format or in natural language.

## Allowed FormsAllowed Forms

•  1234, -1234, etc. integers 12.34 real numbers 12.45e45, 1.2E-5, 1.2*^-5 numbers in scientific notation 12,345.67 numbers with separators 1.2`10, 3.4``20 numbers with a given Precision or Accuracy two, a fifth numbers in natural language 3/5, -1/2 rational numbers

## Restriction SpecificationsRestriction Specifications

•  Restricted["SemanticNumber",{{choices1,…}}] one among choices Restricted["SemanticNumber",max] a number below max Restricted["SemanticNumber",{min,max}] a number between min and max Restricted["SemanticNumber",{min,max,s}] a number between min and max, with step s Restricted["SemanticNumber",Automatic,n] a number with n-digit precision

## ExamplesExamplesopen allclose all

### Basic Examples  (3)Basic Examples  (3)

Interpret numbers:

 Out[1]=
 Out[2]=
 Out[3]=

Interpret numbers in natural language:

 Out[1]=
 Out[2]=

Restrict in a range:

 Out[1]=

Restrict to the first five prime numbers:

 Out[1]=

Restrict to odd numbers below 100:

 Out[1]=

Set the precision:

 Out[1]=

Otherwise, \$MachinePrecision is implied:

 Out[2]=

When the number contains a Precision or Accuracy, and a precision restriction is also specified, the lower of the two will be applied:

 Out[1]=
 Out[2]=