[#BloombergLP-bdldfp-DecimalImpUtil-copySign-02] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdldfp.adoc[bdldfp]::xref:BloombergLP/bdldfp/DecimalImpUtil.adoc[DecimalImpUtil]::copySign :relfileprefix: ../../../ :mrdocs: Return a value with the magnitude of `x` and the sign of `y`. == Synopses Declared in `<bdldfp_decimalimputil.h>` Return a value with the magnitude of `x` and 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 value with the magnitude of `x` and the sign of `y`. [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 a value with the magnitude of `x` and 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..._]# == Return Value a value with the magnitude of `x` and the sign of `y` == Parameters [cols="1,4"] |=== | Name| Description | *x* | value supplying the magnitude | *y* | value supplying the sign |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#