fneg :
negate a float : index : visitInsn()
- Description
- Removes the top single-precision float from the operand stack, negates
it (i.e. inverts its sign), and pushes the negated result back onto the
stack.
Note that, in IEEE floating point arithmetic, negation is not quite the same as
subtracting from 0. IEEE has two zeros, +0.0 and -0.0. fneg applied to +0.0 is
-0.0, whereas (+0.0 minus +0.0) is +0.0. - See also
- ineg lneg dneg
- Stack
Before
|
After |
value |
value |
... |
... |
- Bytecode
Type
|
Description |
u1
|
fneg
opcode = 0x76 (118)
|