Path: blob/main/files/en-us/webassembly/reference/numeric/copy_sign/index.md
6532 views
------{{WebAssemblySidebar}}
The copysign instructions, are used to copy just the sign bit from one number to another.
{{EmbedInteractiveExample("pages/wat/copysign.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
f32.copysign | 0x98 |
f64.copysign | 0xa6 |