Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/webassembly/reference/numeric/ceil/index.md
6519 views
---
title: Ceil slug: WebAssembly/Reference/Numeric/Ceil
---

{{WebAssemblySidebar}}

The ceil instructions, are used for getting the value of a number rounded up to the next integer.

{{EmbedInteractiveExample("pages/wat/ceil.html", "tabbed-standard")}}

Syntax

;; load a number onto the stack f32.const 2.7 ;; round up f32.ceil ;; the top item on the stack will now be 3
InstructionBinary opcode
f32.ceil0x8d
f64.ceil0x9b