NegativeInfinity

digraph InheritanceGraph { graph [bgcolor=transparent, color=lightsteelblue2, fontname=Arial, fontsize=10, outputorder=edgesfirst, overlap=prism, penwidth=2, rankdir=LR, splines=spline, style="dashed, rounded", truecolor=true]; node [colorscheme=pastel19, fontname=Arial, fontsize=10, height=0, penwidth=2, shape=box, style="filled, rounded", width=0]; edge [color=lightslategrey, penwidth=1]; subgraph "cluster_abjad.mathtools" { graph [label="abjad.mathtools"]; node [color=1]; "abjad.mathtools.Infinity.Infinity" [URL="../api/abjad/mathtools/Infinity.html#abjad.mathtools.Infinity.Infinity", label=Infinity, target=_top]; "abjad.mathtools.NegativeInfinity.NegativeInfinity" [URL="../api/abjad/mathtools/NegativeInfinity.html#abjad.mathtools.NegativeInfinity.NegativeInfinity", color=black, fontcolor=white, label="Negative\nInfinity", target=_top]; "abjad.mathtools.Infinity.Infinity" -> "abjad.mathtools.NegativeInfinity.NegativeInfinity"; } subgraph "cluster_abjad.system" { graph [label="abjad.system"]; node [color=2]; "abjad.system.AbjadObject.AbjadObject" [URL="../api/abjad/mathtools/../system/AbjadObject.html#abjad.system.AbjadObject.AbjadObject", label="Abjad\nObject", target=_top]; "abjad.system.AbjadValueObject.AbjadValueObject" [URL="../api/abjad/mathtools/../system/AbjadValueObject.html#abjad.system.AbjadValueObject.AbjadValueObject", label="Abjad\nValue\nObject", target=_top]; "abjad.system.AbjadObject.AbjadObject" -> "abjad.system.AbjadValueObject.AbjadValueObject"; } subgraph cluster_builtins { graph [label=builtins]; node [color=3]; "builtins.object" [URL="https://docs.python.org/3.6/library/functions.html#object", label=object, target=_top]; } "abjad.system.AbjadValueObject.AbjadValueObject" -> "abjad.mathtools.Infinity.Infinity"; "builtins.object" -> "abjad.system.AbjadObject.AbjadObject"; }

class abjad.mathtools.NegativeInfinity.NegativeInfinity

Negative infinity.

All numbers compare greater than negative infinity:

>>> NegativeInfinity < -9999999
True

Negative infinity compares equal to itself:

>>> NegativeInfinity == NegativeInfinity
True

Negative infinity compares less than infinity:

>>> NegativeInfinity < Infinity
True

Initializes as a system singleton at start-up.

Available as a built-in after Abjad start.


Special methods

(AbjadValueObject).__copy__(*arguments)

Copies Abjad value object.

Returns new Abjad value object.

(Infinity).__eq__(argument)

Is true when argument is also infinity.

Returns true or false.

(Infinity).__float__()

Convert infinity to float.

Returns float.

(AbjadObject).__format__(format_specification='')

Formats Abjad object.

Set format_specification to '' or 'storage'. Interprets '' equal to 'storage'.

Returns string.

(Infinity).__ge__(argument)

Is true for all values of argument.

Returns true.

(Infinity).__gt__(argument)

Is true for all noninfinite values of argument.

Returns true or false.

(Infinity).__hash__()

Hashes infinity.

Required to be explicitly redefined on Python 3 if __eq__ changes.

Returns integer.

(Infinity).__le__(argument)

Is true when argument is infinite.

Returns true or false.

(Infinity).__lt__(argument)

Is true for no values of argument.

Returns true or false.

(AbjadObject).__repr__()

Gets interpreter representation of Abjad object.

Returns string.

(Infinity).__sub__(argument)

Subtracts argument from infinity.

Returns infinity or 0 if argument is also infinity.