A real object represents a floating point number in PCE. As PCE is designed first of all for developing user interfaces, reals are rarely used and therefore represented as true objects. The behaviour of reals is very similar to the behaviour of class number.
The value of a real object is represented as a double-precision float using the native floating point format of the machine.
<-value
to the real<-value
of the argument. It
real->larger
succeeds, the receiver is larger than the argument. Note that type
conversion allows for the comparison of integers and numbers too.<-value
from the real<-value
of the argument.
<-value,
execute the operation and, if the operation succeeds, return the new
real. See also number<-catch_all.<-self.
Bugs: It might be better to return a copy.