|  |  |  6.86 LargeZeroInteger 
 
Defined in namespace Smalltalk
Category: Language-Data types
I am quite a strange class. Indeed, the concept of a "large integer"
that is zero is a weird one. Actually my only instance is zero but
is represented like LargeIntegers, has the same generality as
LargeIntegers, and so on. That only instance is stored in the class
variable Zero, and is used in arithmetical methods, when we have to
coerce a parameter that is zero.
 
 
 
  6.86.1 LargeZeroInteger: accessing 
 
at: anIndex
Answer `0'.
hash
Answer `0'.
size
Answer `0'.
 
 
  6.86.2 LargeZeroInteger: arithmetic 
 
* aNumber
Multiply aNumber and the receiver, answer the result 
+ aNumber
Sum the receiver and aNumber, answer the result 
- aNumber
Subtract aNumber from the receiver, answer the result 
/ aNumber
Divide aNumber and the receiver, answer the result (an Integer or Fraction) 
// aNumber
Divide aNumber and the receiver, answer the result truncated towards -infinity 
\\ aNumber
Divide aNumber and the receiver, answer the remainder truncated towards -infinity 
quo: aNumber
Divide aNumber and the receiver, answer the result truncated towards 0 
rem: aNumber
Divide aNumber and the receiver, answer the remainder truncated towards 0 
 
 
  6.86.3 LargeZeroInteger: numeric testing 
 
sign
Answer the receiver's sign 
strictlyPositive
Answer whether the receiver is > 0 
 
 
  6.86.4 LargeZeroInteger: printing 
 
reverseStringBase: radix on: str
Return in a string the base radix representation of the receiver in reverse order 
 
 
 |