Java Virtual Machine (Java Series)

prev next contents
fdiv

divide two floats

Jasmin Syntax

fdiv Stack

Before

After
value1 result
value2 ...
...
Description

Pops two single-precision floats from the stack, divide by the top float, and push the single-precision quotient result back onto the stack (i.e. computes value2 / value1). Division is carried out using IEEE 754 rules.

Bytecode

Type

Description
u1 fdiv opcode = 0x6E (110)
See Also

idiv, ldiv, ddiv

Notes

Divide by zero results in the value NaN to be pushed onto the stack


prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates

Категории