You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> a = 10.0
>>> type(a)
<class 'float'>
>>> a.is_integer()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FIXME line of source goes here
AttributeError: "'float' has no attribute 'is_integer'"
is_integer() method does not exist.
The text was updated successfully, but these errors were encountered:
@corona10
There are built-in functions that are not implemented.
Can I implement them and send PR?
For example
##python
>>> a = 0.875
>>> a.as_integer_ratio()
(7, 8)
>>>
gpython
>>> a = 0.875
>>> a.as_integer_ratio()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
FIXME line of source goes here
AttributeError: "'float' has no attribute 'as_integer_ratio'"
>>>
python
gpython
is_integer()
method does not exist.The text was updated successfully, but these errors were encountered: