# JSONTokenNumber
<span class="source-link">[[Source]](src/json/json_token.md#L-0-99)</span>

A JSON number. `value` is an `I64` for an integer of 18 or fewer digits,
otherwise an `F64` — so a very large integer becomes an `F64` even when
it would have fit in an `I64`.


```pony
class val JSONTokenNumber
```

## Constructors

### create
<span class="source-link">[[Source]](src/json/json_token.md#L-0-108)</span>


```pony
new val create(
  value': (I64 val | F64 val))
: JSONTokenNumber val^
```
#### Parameters

*   value': ([I64](builtin-I64.md) val | [F64](builtin-F64.md) val)

#### Returns

* [JSONTokenNumber](json-JSONTokenNumber.md) val^

---

## Public fields

### let value: ([I64](builtin-I64.md) val | [F64](builtin-F64.md) val)
<span class="source-link">[[Source]](src/json/json_token.md#L-0-105)</span>

`I64` for an integer of 18 or fewer digits, otherwise `F64`.



---

