2 summary:: Floating point number
6 A 64 bit double precision floating point number. Float inherits most of its behaviour from its superclass.
11 returns:: a new Float from a 32 bit word.
14 returns:: a new Float from a 64 bit word.
19 iterates a link::Classes/Function:: from code::0:: to code::this-1::. See also: link::Classes/Integer#-do::, link::Classes/Collection#-do::
21 The function to iterate.
24 iterates function from this-1 to 0
26 The function to iterate.
29 Perform a random test whose probability of success in a range from
30 zero to one is this and return the result.
31 returns:: a link::Classes/Boolean::
34 0.2.coin; // 20 % chance for true.
36 See also: link::Guides/Randomness::
39 returns:: code::true:: since this is a Float.
42 returns:: code::this:: since this is a Float.
45 returns:: an Integer which is the bit pattern of this as a 32bit single precision float
48 returns:: an Integer which is the bit pattern of high 32 bits of the 64 bit double precision floating point value
51 returns:: an Integer which is the bit pattern of high 32 bits of the 64 bit double precision floating point value
54 Returns a string representation of the number, with the desired precision (i.e. number of significant figures).
61 (pi * 0.0001).asStringPrec(3)