Skip to content

round fails when encountering a Single #1977

@mickp

Description

@mickp
>>> round(1.23)
1
>>> round(System.Double(1.23))
1
>>> round(System.Numerics.BigInteger(123))
123
>>> round(System.Single(1.23))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: type Single doesn't define __round__ method

Metadata

Metadata

Assignees

No one assigned

    Labels

    .NET interopIssues relating to how IronPython interacts with .NET types

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions