-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Milestone
Description
VB.NET has two modes for division: simple division, which will return the same answer irrespective of type:
Dim i1 =11, i2 = 4
Dim result = i1 / i2
Console.WriteLine(result)
' prints 2.75and integer division, which rounds the operands down or up, carries out the division, and rounds the answer again to an integer:
Dim i1 =11.0, i2 = 1.1
Dim result = i1 \ i2
Console.WriteLine(result)
' prints 11Perhaps we should render the expression resulting from integer division differently.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels