[#BloombergLP-bdljsn-Json-makeNumber-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdljsn.adoc[bdljsn]::xref:BloombergLP/bdljsn/Json.adoc[Json]::makeNumber
:relfileprefix: ../../../
:mrdocs:

`makeNumber` overloads

== Synopses

Declared in `&lt;bdljsn&lowbar;json&period;h&gt;`

Create an instance of type `JsonNumber` in this object, using the allocator currently held by this object to supply memory, and return a reference providing modifiable access to the created instance&period; Optionally specify `number` to initialize the `JsonNumber` created&period; This method first destroys the current value held by this object (even if the type currently held is `JsonNumber`)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]&
xref:BloombergLP/bdljsn/Json/makeNumber-0b.adoc[makeNumber]();
----

[.small]#xref:BloombergLP/bdljsn/Json/makeNumber-0b.adoc[_» more&period;&period;&period;_]#

Set the value of this object to be a &quot;Number&quot; value&period; Optionally specify the `value` of the &quot;Number&quot;&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]&
xref:BloombergLP/bdljsn/Json/makeNumber-05.adoc[makeNumber](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;JsonNumber&gt;] number);
----

[.small]#xref:BloombergLP/bdljsn/Json/makeNumber-05.adoc[_» more&period;&period;&period;_]#

Same as the overload taking no arguments, but initialize the created `JsonNumber` from the specified `number`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber]&
xref:BloombergLP/bdljsn/Json/makeNumber-0e.adoc[makeNumber](xref:BloombergLP/bdljsn/JsonNumber.adoc[JsonNumber] const& number);
----

[.small]#xref:BloombergLP/bdljsn/Json/makeNumber-0e.adoc[_» more&period;&period;&period;_]#


[.small]#Created with https://www.mrdocs.com[MrDocs]#
