Next: , Up: built-in numerics real   [Contents][Index]


6.13.4.1 The <real> type

Core Type: <real>
Parent Type: <real-valued>

Type of real values. There is no constructor. The type predicate is real?.

Constructor on <real>: <real> type-constructor obj

Validate obj as object of type <real> and return it.

Type predicate on <real>: <boolean> type-predicate obj

The type predicate is real?. Return #t if obj is a <real> object, otherwise return #f.

Comparison procedure on <real>: <fixnum> comparison-procedure this {X <real>}

The comparison procedure is compar-real.

Methods: predicates

Method on <real>: <boolean> positive? this
Method on <real>: <boolean> negative? this

Apply positive?, negative? to the argument and return its return value.

Method on <real>: <boolean> non-positive? this
Method on <real>: <boolean> non-negative? this

Apply non-positive?, non-negative? to the argument and return its return value.

Methods: comparison

Method on <real>: <boolean> < this {Z0 <real>} {Z <real>} …

Apply < to the arguments and return its return value.

Method on <real>: <boolean> > this {Z0 <real>} {Z <real>} …

Apply > to the arguments and return its return value.

Method on <real>: <boolean> <= this {Z0 <real>} {Z <real>} …

Apply <= to the arguments and return its return value.

Method on <real>: <boolean> <= this {Z0 <real>} {Z <real>} …

Apply <= to the arguments and return its return value.

Methods

Method on <real>: <non-negative-real> abs this

Apply abs to the argument and return its return value.

Method on <real>: <real> numerator this

Apply numerator to the argument and return its return value.

Method on <real>: <real> denominator this

Apply denominator to the argument and return its return value.

Method on <real>: <real> sign this

Apply sign to the argument and return its return value.

Methods: rounding

Method on <real>: <real> floor this

Apply floor to the argument and return its return value.

Method on <real>: <real> ceiling this

Apply ceiling to the argument and return its return value.

Method on <real>: <real> truncate this

Apply truncate to the argument and return its return value.

Method on <real>: <real> round this

Apply round to the argument and return its return value.

Method on <real>: <real> rationalize this {X <real>}

Apply rationalize to the arguments and return its return value.


Next: , Up: built-in numerics real   [Contents][Index]