Convert long
to double
Bytecode
Type | Description |
u1 | l2d opcode = 0x8A (138) |
Stack ..., value.word1, value.word2 => ..., result.word1, result.word2
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 double
result using
IEEE 754 round-to-nearest mode. The result is pushed onto the operand stack.
Notes
The l2d instruction performs a widening primitive conversion
that may lose precision because type double
has only 53 mantissa bits.