Skip to content

float  #26

@Bchass

Description

@Bchass

Describe the bug
__float__ doesn't understand converting float to int.

To Reproduce
Steps to reproduce the behavior:

from tinynumpy import tinynumpy as tnp
x = tnp.array([1,2,2.5])
TypeError: 'float' object cannot be interpreted as an integer

Expected behavior
It's expected to print out the array with a float present.

Screenshots
N/A

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions