[#BloombergLP-bdldfp-DecimalUtil-sqrt-035]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalUtil.adoc[DecimalUtil]::sqrt
:relfileprefix: ../../../
:mrdocs:

Return the square root of the specified `x`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32]
sqrt(xref:BloombergLP/bdldfp/Decimal32.adoc[Decimal32] x);
----

== Description

Special value handling&colon; &ast; If `x` is NaN, NaN is returned&period; &ast; If `x` is less than &hyphen;0, NaN is returned and the value of the macro `EDOM` is stored into `errno`&period; &ast; If `x` is &plus;&sol;&hyphen;infinity or &plus;&sol;&hyphen;0, it is returned unmodified&period;

== Return Value

square root of `x`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| value whose square root is returned
|===


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