|
|
6.91 Magnitude
- Defined in namespace Smalltalk
- Category: Language-Data types
- I am an abstract class. My objects represent things that are discrete and
map to a number line. My instances can be compared with < and >.
6.91.1 Magnitude: basic
- < aMagnitude
- Answer whether the receiver is less than aMagnitude
- <= aMagnitude
- Answer whether the receiver is less than or equal to aMagnitude
- = aMagnitude
- Answer whether the receiver is equal to aMagnitude
- > aMagnitude
- Answer whether the receiver is greater than aMagnitude
- >= aMagnitude
- Answer whether the receiver is greater than or equal to aMagnitude
6.91.2 Magnitude: misc methods
- between: min and: max
- Returns true if object is inclusively between min and max.
- max: aMagnitude
- Returns the greatest object between the receiver and aMagnitude
- min: aMagnitude
- Returns the least object between the receiver and aMagnitude
|