[#BloombergLP-bdldfp-DecimalImpUtil-copySign-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::copySign :relfileprefix: ../../../ :mrdocs: `copySign` overloads == Synopses Declared in `<bdldfp_decimalimputil.h>` Return `x` with the sign of `y`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[DecimalImpUtil::ValueType128] xref:BloombergLP/bdldfp/DecimalImpUtil/copySign-06.adoc[copySign]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType128.adoc[ValueType128] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/copySign-06.adoc[_» more..._]# Return a decimal value with the magnitude of the specifed `x` and the sign of the specified `y`. If `x` is NaN, then NaN with the sign of `y` is returned. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[DecimalImpUtil::ValueType32] xref:BloombergLP/bdldfp/DecimalImpUtil/copySign-08.adoc[copySign]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType32.adoc[ValueType32] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/copySign-08.adoc[_» more..._]# Return `x` with the sign of `y`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[DecimalImpUtil::ValueType64] xref:BloombergLP/bdldfp/DecimalImpUtil/copySign-0e.adoc[copySign]( xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] x, xref:BloombergLP/bdldfp/DecimalImpUtil/ValueType64.adoc[ValueType64] y); ---- [.small]#xref:BloombergLP/bdldfp/DecimalImpUtil/copySign-0e.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#