The Numeric data type

The data type of all numbers, both integer and floating point, is Numeric. It matches any integer or floating point number, and takes no parameters.

Numeric is equivalent to Variant[Integer, Float]. If you need to set size limits but still accept both integers and floats, you can use the abstract type Variant to construct an appropriate data type. For example:

Variant[Integer[-3,3], Float[-3.0,3.0]]