Rounding Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Samuel

    Rounding Question

    The first line of code produces the value of 1.92 while the second 1.18

    WHY???



    Dim d As Double = Math.Round(1.92 5, 2)

    Dim d1 As Double = Math.Round(1.17 5, 2)


Working...