[#BloombergLP-balxml-TypesParserUtil-parseDecimal]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balxml.adoc[balxml]::xref:BloombergLP/balxml/TypesParserUtil.adoc[TypesParserUtil]::parseDecimal
:relfileprefix: ../../../
:mrdocs:

Parse the specified `input` using `bdlat&lowbar;FormattingMode&colon;&colon;e&lowbar;DEC`&period;

== Synopsis

Declared in `&lt;balxml&lowbar;typesparserutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class TYPE&gt;
static
int
parseDecimal(
    TYPE* result,
    char const* input,
    int inputLength);
----

== Description

Parse the specified `input` of the specified `inputLength` using `bdlat&lowbar;FormattingMode&colon;&colon;e&lowbar;DEC` and load the result into the specified `result`&period; Return 0 on success, and a non&hyphen;zero value otherwise&period;

== Return Value

0 on success, and a non&hyphen;zero value otherwise

== Parameters

[cols="1,4"]
|===
| Name| Description
| *result*
| parsed value
| *input*
| character buffer to parse
| *inputLength*
| number of characters in `input`
|===


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