Back: LargeInteger-testing
Up: Class reference
Forward: LargeNegativeInteger-converting
 
Top: GNU Smalltalk User's Guide
Contents: Table of Contents
Index: Class index
About: About this document

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  (instance)
6.83.2 LargeNegativeInteger: numeric testing  (instance)
6.83.3 LargeNegativeInteger: reverting to LargePositiveInteger  (instance)


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




This document was generated on May, 12 2002 using texi2html