On this page

f64 Instructions

A collection of the different f64 instructions you can use. Select the instruction to see more information.

f64 Math

Instruction Description
f64.const Push a f64 value onto the stack.
f64.add Adds two numbers together.
f64.sub Subtracts one number from another.
f64.mul Multiples two numbers together.
f64.div Divide a number by another.
f64.abs Get the absolute version of a value.
f64.neg Negates a value.
f64.ceil Get the ceiling amount of a value.
f64.floor Get the floor amount of a value.
f64.nearest Round a value to the nearest whole number.
f64.trunc Truncates a value by removing any decimanl points.
f64.sqrt Get the square root of a value.
f64.min Get the smallest of two values.
f64.max Get the largest of two values.
f64.copysign Copy the sign part of a value (plus or minus) onto another value.

f64 Condition

Instruction Description
f64.eq Compares two values to see if they are equal.
f64.ne Compares two values to see if they are not equal.
f64.gt Compares two values and see if the first is greater than the second.
f64.ge Compares two values and see if the first is greater than or equal to the second.
f64.lt Compares two values and see if the first is less than the second.
f64.le Compares two values and see if the first is less than or equal to the second.

f64 Conversion

Instruction Description
f64.convert_i32_s Convert an i32 value into a f64 value (signed).
f64.convert_i32_u Convert an i32 value into a f64 value (unsigned).
f64.convert_i64_s Convert an i64 value into a f64 value (signed).
f64.convert_i64_u Convert an i64 value into a f64 value (unsigned).
f64.promote_f32 Convert a f32 value into a f64 value.
f64.reinterpret_i64 Translate the binary structure of a f64, stored in an i64 value, back into a f64 value.

f64 Memory

Instruction Description
f64.store Copy an f64 value into memory.
f64.load Copy a 64 bit (8 byte) floating point data value from memory.