Path: blob/main/files/en-us/webassembly/reference/numeric/multiplication/index.md
6517 views
------{{WebAssemblySidebar}}
The mul instructions, short for multiplication, are used for multiplying one number by another number, similar to the * operator in other languages.
{{EmbedInteractiveExample("pages/wat/mul.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
i32.mul | 0x6c |
i64.mul | 0x7e |
f32.mul | 0x94 |
f64.mul | 0xa2 |