G
Guest
I want to detect if multiplying two integers or two longs will cause an
overflow without using a try-catch block. I know how to do it with
try-catch, but the performance hit is too much. I want an efficient test so
I can program like
if CausesOverflow(x,y) then
' do one thing
else
' do something else
endif
I am using VB and FW 1.1. I'll be upgrading from 1.1 soon.
overflow without using a try-catch block. I know how to do it with
try-catch, but the performance hit is too much. I want an efficient test so
I can program like
if CausesOverflow(x,y) then
' do one thing
else
' do something else
endif
I am using VB and FW 1.1. I'll be upgrading from 1.1 soon.