Dim x As Integer = 1.8 \ 1
Error:
Option Strict On disallows implicit conversions from 'Double' to 'Long'
What Long??
EDIT:
Apparently Visual Basic attempts to convert any floating-point numeric expression to Long. OK, this part is clear.
Now, I can use the
CType((Math.Round(myResultingSingle)), Integer)
but what for MSDN tells that \
operator supports all the types if in reality it supports only Long
as expression1 ?!...