|
|
6.83 LargeNegativeInteger
- Defined in namespace Smalltalk
- Category: Language-Data types
Just like my brother LargePositiveInteger, I provide a few methods that
allow LargeInteger to determine the sign of a large integer in a fast way
during its calculations. For example, I know that I am smaller than any
LargePositiveInteger
6.83.1 LargeNegativeInteger: converting
- asFloat
- Answer the receiver converted to a Float
6.83.2 LargeNegativeInteger: numeric testing
- abs
- Answer the receiver's absolute value.
- negative
- Answer whether the receiver is < 0
- positive
- Answer whether the receiver is >= 0
- sign
- Answer the receiver's sign
- strictlyPositive
- Answer whether the receiver is > 0
6.83.3 LargeNegativeInteger: reverting to LargePositiveInteger
- + aNumber
- Sum the receiver and aNumber, answer the result
- - aNumber
- Sum the receiver and aNumber, answer the result
- gcd: anInteger
- Return the greatest common divisor between the receiver and anInteger
- highBit
- Answer the receiver's highest bit's index
|