[#BloombergLP-bdldfp-DecimalImpUtil_IntelDfp-parse32-0e]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp.adoc[DecimalImpUtil&lowbar;IntelDfp]::parse32
:relfileprefix: ../../../
:mrdocs:

Parse a 32&hyphen;bit decimal floating&hyphen;point value from text&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/DecimalImpUtil_IntelDfp/ValueType32.adoc[DecimalImpUtil&lowbar;IntelDfp::ValueType32]
parse32(char const* string);
----

== Description

Parse the specified `string` as a 32 bit decimal floating&hyphen;point value and return the result&period; The parsing is as specified for the `strtod32` function in section 9&period;6 of the ISO&sol;EIC TR 24732 C Decimal Floating&hyphen;Point Technical Report, except that it is unspecified whether the NaNs returned are quiet or signaling&period; If `string` represents a value that absolute value exceeds the maximum value or is less than the smallest value supported by `ValueType32` type then store the value of the macro `ERANGE` into `errno` and return the value initialized to infinity or zero respectively with the same sign as specified in `string`&period; The behavior is undefined unless `input` represents a valid 32 bit decimalfloating&hyphen;point number in scientific or fixed notation, and no unrelated characters precede (not even whitespace) that textual representation and a terminating nul character immediately follows it&period; Note that this method does not guarantee the behavior of ISO&sol;EIC TR 24732 C when parsing NaN because the AIX compiler intrinsics return a signaling NaN&period;

== Return Value

parsed 32&hyphen;bit decimal value

== Parameters

[cols="1,4"]
|===
| Name| Description
| *string*
| null&hyphen;terminated decimal text to parse
|===


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