Path: blob/main/files/en-us/webassembly/reference/numeric/nearest/index.md
6510 views
------{{WebAssemblySidebar}}
The nearest instructions, are used for getting the value of a number rounded to the nearest integer.
{{EmbedInteractiveExample("pages/wat/nearest.html", "tabbed-standard")}}
Syntax
| Instruction | Binary opcode |
|---|---|
f32.nearest | 0x90 |
f64.nearest | 0x9e |