Create a JsonNumber having the specified value.
Declared in <bdljsn_jsonnumber.h>
explicit
JsonNumber(
float value,
allocator_type const& allocator = allocator_type());
Optionally specify an allocator (e.g., the address of a bslma::Allocator object) used to supply memory. The behavior is undefined if the value is infinite (INF) or not-a-number (NaN).
| Name | Description |
|---|---|
| value | numeric value to store |
| allocator | allocator used to supply memory |