Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Integer
Last updated at 9:04 am UTC on 28 October 2018
I am a common abstract superclass for all Integer implementations.
My implementation subclasses are SmallInteger, LargePositiveInteger, and LargeNegativeInteger.
See my Integer superclass for general numeric methods

Some common methods (many inherited from Integer)


Integer division consists of:
/ exact division, answers a fraction if result is not a whole integer
// answers an Integer, rounded towards negative infinity
\\ is modulo rounded towards negative infinity
quo: truncated division, rounded towards zero

Prime numbers demo