[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Sc-devel] When integers go bad



Hi -

SC goes a bit strange when integers go off the scale:

 1410889248 * 99;   // Results in -2055885216

Is this as designed? Since it returns an Integer, it's pretty
dangerous since it can continue to be used in calculations and can
corrupt. Would be better if it returned inf, or perhaps even threw
some kind of exception. Is that feasible?

Thanks
Dan