[#BloombergLP-bdldfp-DecimalImpUtil-sqrt-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::sqrt :relfileprefix: ../../../ :mrdocs: Return the square root of the specified `x`. == Synopsis Declared in `<bdldfp_decimalimputil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32] sqrt(xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x); ---- == Description Special value handling: * If `x` is quiet NaN, quiet NaN is returned. * If `x` is signaling NaN, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`. * If `x` is less than ‐0, quiet NaN is returned and the value of the macro `EDOM` is stored into `errno`. * If `x` is +/‐infinity or +/‐0, it is returned unmodified. Return the square root of the specified `x`. [.small]#Created with https://www.mrdocs.com[MrDocs]#