Bytecode
Type | Description |
u1 | d2i opcode = 0x8E (142) |
Stack ..., value.word1, value.word2 => ..., result
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 an int
. The result
is pushed onto the operand stack:
int
0. int
, then the result is the int
value V. int
, or the value must be too large (a positive value of large
magnitude or positive infinity), and the result is the largest representable value
of type int
. NotesThe d2i instruction performs a narrowing primitive conversion. It may lose information about the overall magnitude of value, and may also lose precision