package guile

  1. Overview
  2. Docs
val real_p : scm -> scm

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

val is_real : scm -> bool

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

val rationalp : scm -> scm

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

val is_rational : scm -> bool

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

val rationalize : scm -> scm -> scm
val inf_p : scm -> scm

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

val nan_p : scm -> scm

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

val finite_p : scm -> scm

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

val nan : unit -> scm

nan () returns the Guile value representing nan.

val inf : unit -> scm

inf () returns the Guile value representing inf.

val numerator : scm -> scm

numerator v returns the numerator of a rational value v.

val denominator : scm -> scm

denominator v returns the denominator of a rational value v.

val from_raw : scm -> float

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

val to_raw : float -> scm

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

OCaml

Innovation. Community. Security.