links to this page:
Squeak in a Nutshell
Swiki Page List
Numbers
Last updated at 1:37 am UTC on 17 January 2006
[-]number
Magnitude
Number
is:
Integer
LargePositiveInteger
- greater than 1 Billion
LargeNegativeInteger
SmallInteger
- 31 bit ~+/- 1 Billion
Fraction
- (1/3) represented as 1/3 not .3333
Float
IEEE-754 floating-point double-precision numbers.
They have about 16 digits of accuracy and their range is between plus and minus 10^307.
Examples
8.0
13.3
0.3 2.5e6
1.27e-30
1.27e-31
-12.987654e12
13 <= 44
true
10 between: 9 and: 11
true
100 min: 125
100
100 max: 125
125
27 even
false