Skip to content

ENH: Implement __round__ special method for ndarrays #6248

@anntzer

Description

@anntzer

This would allow calling round(array). While this would certainly be equivalent to np.round(array), a similar feature is already there with abs(array) (which calls __abs__) and np.abs(array).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions