package guile

  1. Overview
  2. Docs

Module Number.FloatSource

Sourceval real_p : scm -> scm

real_p v returns #t if v is a real value and #f otherwise.

Sourceval is_real : scm -> bool

is_real v returns true if v is a real value and false otherwise.

Sourceval rationalp : scm -> scm

rational_p v returns #t if v is a rational value and #f otherwise.

Sourceval is_rational : scm -> bool

is_rational v returns true if v is a rational value and false otherwise.

Sourceval rationalize : scm -> scm -> scm
Sourceval inf_p : scm -> scm

inf_p v returns #t if v is a inf value and #f otherwise.

Sourceval nan_p : scm -> scm

nan_p v returns #t if v is a nan value and #f otherwise.

Sourceval finite_p : scm -> scm

finite_p v returns #t if v is a finite value and #f otherwise.

Sourceval nan : unit -> scm

nan () returns the Guile value representing nan.

Sourceval inf : unit -> scm

inf () returns the Guile value representing inf.

Sourceval numerator : scm -> scm

numerator v returns the numerator of a rational value v.

Sourceval denominator : scm -> scm

denominator v returns the denominator of a rational value v.

Sourceval from_raw : scm -> float

from_raw v extracts an OCaml float from a Guile value v.

Sourceval to_raw : float -> scm

to_raw f converts an OCaml float f into a Guile value.

OCaml

Innovation. Community. Security.