Skip to content

Divide functions have ambiguous specification for integer inputs #361

Closed

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().

Activity

  1. changed the title [-]Divide functions have ambiguous behaviour for integer inputs[/-] [+]Divide functions have ambiguous specification for integer inputs[/+] on Jan 7, 2022
  2. kgryte commented on Jan 7, 2022

    @kgryte
    Contributor

    The spec can be updated with a note similar to pow. Feel free to submit a PR with the proposed changes.

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

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