l2f

Convert long to float

Bytecode

Type Description
u1 l2f opcode = 0x89 (137)

Stack ..., value.word1, value.word2 => ..., result

Description
The value on the top of the operand stack must be of type long. It is popped from the operand stack and converted to a float result using IEEE 754 round-to-nearest mode. The result is pushed onto the operand stack.

Notes
The l2f instruction performs a widening primitive conversion   that may lose precision because type float has only 24 mantissa bits.