Skip to content

CDIV blocks FLT and doesn't preserve base. #124

@python-processing-unit

Description

@python-processing-unit

According to the specification section 9.1.3:

  • INT|FLT: ADD/SUB/MUL/DIV/CDIV/POW/MOD(INT|FLT: a, INT|FLT: b) = MUST implement, respectively, addition, subtraction, multiplication, division, ceiling division, exponentiation, and remainder. Except where an operator explicitly states otherwise, a and b MUST have the same numeric type. Division by zero MUST raise a runtime error.

and the specification section 4.3.2:

Mathematical operations MUST produce results in the highest base present among numeric operands.

In the implementation, however, CDIV does not allow FLT args, and does not use the higher of it's operands base's as the base of the output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpatchRequires a patch version change.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions