Define a primitive data type: Difference between revisions

→‎[[Defining Primitive Data Types#ALGOL 68]]: check that multiplication is possible for big integers.
(→‎[[Defining Primitive Data Types#ALGOL 68]]: check that multiplication is possible for big integers.)
Line 77:
- = (BOUNDED a, b)BOUNDED: value OF a + -value OF b ASSERTIN []BOUNDED(a,b),
* = (BOUNDED a, b)BOUNDED:
IF TRUE # ABS value OF a < sqrt max int AND ABS value OF b < sqrt max int # THEN
value OF a * value OF b ASSERTIN []BOUNDED(a,b)
ELSE
Line 182:
out of bounds +12544 > [: +10000]- exiting to except bounds error
</pre>
 
===Other libraries or implementation specific extensions===
As of February 2009 no open source libraries to do this task have been located.