Skip to content

VB: Modulus operator should be referred to as Remainder #4884

@BillWagner

Description

@BillWagner

See #4860

The operator referred to as "modulus" performs a "remainder" operation. There are subtle differences, primarily with negative numbers.

As pointed out in the PR, the Mod operator name complicates this. (Similarly op_Modulus in IL complicates the explanation as well.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions