Dim a, b, c as double (or single)
a = 1
b = 0
c = a/b 'in vb6 this would error
if so, in .net, the reason is because single and double have extra properties like MaxValue, PositiveInfinity, and more pertinently, NaN - not a number
To get one to throw, try this
dim a as single, b as double
b = double.maxvalue
a = b 'this should throw
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.