Path: blob/main/files/en-us/webassembly/reference/numeric/addition/index.md
6516 views
------{{WebAssemblySidebar}}
The add instructions, are used for adding up two numbers, similar to the + operator in other languages.
{{EmbedInteractiveExample("pages/wat/add.html", "tabbed-taller")}}
Syntax
| Instruction | Binary opcode |
|---|---|
i32.add | 0x6a |
i64.add | 0x7c |
f32.add | 0x92 |
f64.add | 0xa0 |