__neg__


Definition
The syntax convert the value to negative.

Syntax
__neg__

Parameters
Number

Examples
The negative value of Fraction is:
 >>> Fraction(2,3).numerator.__neg__()
-2


The value return negative:
 Fraction(0, 1)
>>> Fraction(2,1).real.__neg__()

Comments