[#BloombergLP-bdljsn-JsonNumber-2constructor-01] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]::JsonNumber :relfileprefix: ../../../ :mrdocs: Create a `JsonNumber` having the specified `value`. 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`). == Synopsis Declared in `<bdljsn_jsonnumber.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit JsonNumber( float value, xref:BloombergLP/bdljsn/JsonNumber/allocator_type.adoc[allocator_type] const& allocator = allocator_type()); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#