[#BloombergLP-bdldfp-DecimalImpUtil-checkLiteral-0a]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::checkLiteral
:relfileprefix: ../../../
:mrdocs:

`checkLiteral` overloads

== Synopses

Declared in `&lt;bdldfp&lowbar;decimalimputil&period;h&gt;`

Accept a `double` so valid unsuffixed floating literals are allowed&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
void
xref:BloombergLP/bdldfp/DecimalImpUtil/checkLiteral-0f.adoc[checkLiteral](double value);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/checkLiteral-0f.adoc[_» more&period;&period;&period;_]#

Generate an error if `t` is not a valid decimal floating&hyphen;point literal&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
void
xref:BloombergLP/bdldfp/DecimalImpUtil/checkLiteral-00.adoc[checkLiteral](TYPE const& t);
----

[.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/checkLiteral-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *value*
| double value from an unsuffixed floating literal
| *t*
| value used to diagnose an invalid literal
|===


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