« Return to Thread: When integers go bad

When integers go bad

by Dan Stowell :: Rate this Message:

Reply to Author | View in Thread

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
_______________________________________________
Sc-devel mailing list
Sc-devel@...
http://lists.create.ucsb.edu/mailman/listinfo/sc-devel

 « Return to Thread: When integers go bad