A 64 bit double precision floating point number. Float inherits most of its behaviour from its superclass.
a new Float from a 32 bit word.
a new Float from a 64 bit word.
iterates a Function from 0 to this-1. See also: Integer: -do, Collection: -do
| function |
The function to iterate. |
iterates function from this-1 to 0
| function |
The function to iterate. |
Perform a random test whose probability of success in a range from zero to one is this and return the result.
a Boolean
0.2.coin; // 20 % chance for true.
See also: Randomness
true since this is a Float.
this since this is a Float.
an Integer which is the bit pattern of this as a 32bit single precision float
an Integer which is the bit pattern of high 32 bits of the 64 bit double precision floating point value
an Integer which is the bit pattern of high 32 bits of the 64 bit double precision floating point value
Returns a string representation of the number, with the desired precision (i.e. number of significant figures).
// example: pi pi.asStringPrec(3) pi.asStringPrec(6) (pi * 0.0001).asStringPrec(3) 7.4.asStringPrec(5) 7.4.asStringPrec(50)