Skip to content

I wouldn't use math.floor(x) != x #3

Description

@KleinerNull

Go the save round and just use isinstance(n, numbers.Number) or numbers.Complex, numbers.Real and and and. So you don't need to import the math module at all, which I think was your goal.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions