package guile

  1. Overview
  2. Docs
Bindings to GNU Guile Scheme for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.tar.gz
md5=be5a3dae4018b36103f0af9f769a26f0
sha512=74136c9f933aea8d0403d5f5826cf7acb8824c985639d5a79eb2a7247c1bd1362eb61fd946f148e25e7b0283af2e36435c3d3ffe5f7e7913e27b70d941e97c09

doc/guile.guile/Guile/Number/Float/index.html

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.