f2i


Operation
Convert float to int

f2i

Forms
f2i = 139 (0x8b)

Stack
..., value ..., result

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

The f2i instruction performs a narrowing primitive conversion (§2.6.3). It may lose information about the overall magnitude of value, and may also lose precision.