Automatic type conversion in Visual Basic 6.0

前端 未结 5 1543
自闭症患者
自闭症患者 2021-01-13 06:13

When we convert a float to integer in visual basic 6.0, how does it round off the fractional part? I am talkin about the automatic type conversion.

If we assign like

5条回答
  •  天涯浪人
    2021-01-13 06:30

    The changed behaviour sounds worrying indeed, however the correct answer surley is 6. Scroll down to "Round to even method" on Wikipedia, Rounding for an explanation.

提交回复
热议问题