The Number type represents numeric values including integers and floating-point numbers.
Type URL | https://rustybeam.net/schema/Number |
---|---|
Base Type | number |
Default Pattern | ^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$ |
Constraints | {"format": "JSON number format"} |
The validation pattern accepts:
42
, -17
, 0
3.14
, -0.001
1.23e4
, 5E-10
0
, 0.5
(but not 01
)<tr itemscope itemtype="https://rustybeam.net/schema/Property">
<td><span itemprop="name">price</span></td>
<td><span itemprop="type">Number</span></td>
<td><span itemprop="cardinality">1</span></td>
<td><span itemprop="description">The price in dollars</span></td>
</tr>
<span itemprop="price">19.99</span>