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

{{WebAssemblySidebar}}

The min instructions, are used for getting the lower of two numbers.

{{EmbedInteractiveExample("pages/wat/min.html", "tabbed-taller")}}

Syntax

;; load two numbers onto the stack f32.const 10 f32.const 3 ;; get lower number f32.min ;; the top item on the stack will now be 3
InstructionBinary opcode
f32.min0x96
f64.min0xa4