Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Divide functions have ambiguous specification for integer inputs #361

Closed
@honno

Description

@honno

divide() (and __truediv__/__itruediv__) allows x1 and x2 to be integer arrays, but the ouput is specified as a floating array determined by type promotion, which int types can't promote to.

The spec should either clarify behaviour for both mixed int/float array and two int array scenarios, or note they are out-of-scope similiar to pow().

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