Reply to thread

If I have a computer and whatever programming language I am using..

 

just do this:

 

z = x * y

 

z is defined as the same numeric type as x and y

 

at this point if the product is above the range of the numeric type,

 

then z stores some number unrelated to the actual product of x and y after overflowing

 

and all

 

then do

 

IF((z/x) = y) is TRUE then my numeric type is good to store the product of x and y

 

Please correct in case of error


Back
Top Bottom