Copies the sign of a _decimal value to another. This operation is silent, no error flags are set and no exceptions are thrown.
a _decimal value to copy
a _decimal value from which the sign is copied
to with the sign of from
decimal32 negative = -decimal32.min_normal; decimal64 test = decimal64.max; assert(copysign(test, negative) == -decimal64.max);
See Implementation
Copies the sign of a _decimal value to another. This operation is silent, no error flags are set and no exceptions are thrown.