Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

refactor #11

Closed
GreatBahram opened this issue May 17, 2019 · 1 comment
Closed

refactor #11

GreatBahram opened this issue May 17, 2019 · 1 comment

Comments

@GreatBahram
Copy link

value = value.__int__()

value = int(value)
@mhajiloo
Copy link
Owner

If value defines __int__(), int(value) returns value.__int__(). If value defines __trunc__(), it returns value.__trunc__(). For floating point numbers, this truncates towards zero!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants