d2l

Convert double to long

Bytecode

Type Description
u1 d2l opcode = 0x8F (143)

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

Description
The value on the top of the operand stack must be of type double. It is popped from the operand stack and converted to a long. The result is pushed onto the operand stack:

The d2l instruction performs a narrowing primitive conversion. It may lose information about the overall magnitude of value, and may also lose precision.