src/swipl-devel/packages/xpce/man/refmanual/md/real.md

class real {#class-real}

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.

@see class binary_expression

Send methods {#class-real-send}

Get methods {#class-real-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.