yex.value.Number
yex.value.Number(value=0)
#
A value which represents the type of integers. The usual arithmetic and comparison operators are defined.
Attributes:
| Name | Type | Description |
|---|---|---|
value |
int
|
The integer we represent. |
Source code in yex/value/number.py
21 22 23 24 25 26 27 28 29 30 31 32 | |
from_another(other, value=None)
classmethod
#
Creates a new Number object from the current Number object. Optionally, you can set the value as well.
Source code in yex/value/number.py
62 63 64 65 66 67 68 69 70 | |