On this page

DecimalNumber

from noon import DecimalNumber

Source-derived class. Host availability is not inferred from this listing. See reference scope.

Bases: _RetainedTextMobject. Declared members follow; inherited and dynamically attached members are not expanded.

DecimalNumber.__init__

DecimalNumber.__init__(self, number: float=0, *, num_decimal_places: int=2, include_sign: bool=False, group_with_commas: bool=True, show_ellipsis: bool=False, unit: str | None=None, font_size: float=48.0, color: _base.Color=_base.WHITE, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
numberpositional or keywordfloat0
num_decimal_placeskeyword-onlyint2
include_signkeyword-onlyboolFalse
group_with_commaskeyword-onlyboolTrue
show_ellipsiskeyword-onlyboolFalse
unitkeyword-onlystr | NoneNone
font_sizekeyword-onlyfloat48.0
colorkeyword-only_base.Color_base.WHITE
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

DecimalNumber.font_size

DecimalNumber.font_size(self) -> float

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

DecimalNumber.get_value

DecimalNumber.get_value(self) -> float
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: float

No docstring declared here. Consult the source and host reference.

Source declaration

DecimalNumber.set_value

DecimalNumber.set_value(self, number: float)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
numberpositional or keywordfloatNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

DecimalNumber.increment_value

DecimalNumber.increment_value(self, delta: float)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
deltapositional or keywordfloatNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration