float
fneg |
Description
The value must be of type float
. It is popped from the operand stack. The float
result is the arithmetic negation of value, -value. The result is pushed onto the operand stack.
For float
values, negation is not the same as subtraction from zero. If x
is +0.0
, then 0.0-x
equals +0.0
, but -x
equals -0.0
. Unary minus merely inverts the sign of a float
.