Next: , Previous: , Up: LargeInteger   [Index]


1.98.2 LargeInteger: 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

divExact: aNumber

Dividing receiver by arg assuming that the remainder is zero, and answer the result

estimatedLog

Answer an estimate of (self abs floorLog: 10)

negated

Answer the receiver’s negated

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