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)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
number | positional or keyword | float | 0 |
num_decimal_places | keyword-only | int | 2 |
include_sign | keyword-only | bool | False |
group_with_commas | keyword-only | bool | True |
show_ellipsis | keyword-only | bool | False |
unit | keyword-only | str | None | None |
font_size | keyword-only | float | 48.0 |
color | keyword-only | _base.Color | _base.WHITE |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
DecimalNumber.font_size
DecimalNumber.font_size(self) -> floatDecorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
DecimalNumber.get_value
DecimalNumber.get_value(self) -> float
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: float
No docstring declared here. Consult the source and host reference.
DecimalNumber.set_value
DecimalNumber.set_value(self, number: float)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
number | positional or keyword | float | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
DecimalNumber.increment_value
DecimalNumber.increment_value(self, delta: float)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
delta | positional or keyword | float | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.