package guile

  1. Overview
  2. Docs

Module Guile.NumberSource

Sourceval number_p : scm -> scm

number_p v returns #t if v is a number and #f otherwise.

Sourceval is_number : scm -> bool

is_number v returns true if v is a number and false otherwise.

Sourceval integer_p : scm -> scm

integer_p v returns #t if v is an integer and #f otherwise.

Sourceval is_integer : scm -> bool

is_integer v returns true if v is an integer and false otherwise.

Sourceval exact_integer_p : scm -> scm

exact_integer_p v returns #t if v is an exact integer and #f otherwise.

Sourceval is_exact_integer : scm -> bool

is_exact_integer v returns true if v is an exact integer and false otherwise.

Sourceval char_from_raw : scm -> char

char_from_raw v extracts an OCaml char from a Guile value v.

Sourceval schar_from_raw : scm -> int

schar_from_raw v extracts an OCaml signed char from a Guile value v.

Sourceval uchar_from_raw : scm -> Unsigned.uchar

uchar_from_raw v extracts an OCaml unsigned char from a Guile value v.

Sourceval short_from_raw : scm -> int

short_from_raw v extracts an OCaml short from a Guile value v.

Sourceval ushort_from_raw : scm -> Unsigned.ushort

ushort_from_raw v extracts an OCaml unsigned short from a Guile value v.

Sourceval int_from_raw : scm -> int

int_from_raw v extracts an OCaml int from a Guile value v.

Sourceval uint_from_raw : scm -> Unsigned.uint

uint_from_raw v extracts an OCaml unsigned int from a Guile value v.

Sourceval long_from_raw : scm -> Signed.long

long_from_raw v extracts an OCaml long from a Guile value v.

Sourceval ulong_from_raw : scm -> Unsigned.ulong

long_from_raw v extracts an OCaml unsigned long from a Guile value v.

Sourceval long_long_from_raw : scm -> Signed.llong

long_long_from_raw v extracts an OCaml long long from a Guile value v.

Sourceval ulong_long_from_raw : scm -> Unsigned.ullong

ulong_long_from_raw v extracts an OCaml unsigned long long from a Guile value v.

Sourceval size_t_from_raw : scm -> Unsigned.size_t

size_t_from_raw v extracts an OCaml size_t from a Guile value v.

Sourceval char_to_raw : char -> scm

char_to_raw c converts an OCaml char c into a Guile value.

Sourceval schar_to_raw : int -> scm

schar_to_raw c converts an OCaml signed char c into a Guile value.

Sourceval uchar_to_raw : Unsigned.uchar -> scm

uchar_to_raw c converts an OCaml unsigned char c into a Guile value.

Sourceval short_to_raw : int -> scm

short_to_raw c converts an OCaml short c into a Guile value.

Sourceval ushort_to_raw : Unsigned.ushort -> scm

ushort_to_raw c converts an OCaml unsigned short c into a Guile value.

Sourceval int_to_raw : int -> scm

int_to_raw i converts an OCaml int i into a Guile value.

Sourceval uint_to_raw : Unsigned.uint -> scm

uint_to_raw i converts an OCaml unsigned int i into a Guile value.

Sourceval long_to_raw : Signed.long -> scm

long_to_raw l converts an OCaml long l into a Guile value.

Sourceval ulong_to_raw : Unsigned.ulong -> scm

ulong_to_raw l converts an OCaml unsigned long l into a Guile value.

Sourceval long_long_to_raw : Signed.llong -> scm

long_long_to_raw l converts an OCaml long long l into a Guile value.

Sourceval ulong_long_to_raw : Unsigned.ullong -> scm

ulong_long_to_raw l converts an OCaml unsigned long long l into a Guile value.

Sourceval size_t_to_raw : Unsigned.size_t -> scm

size_t_to_raw l converts an OCaml size_t l into a Guile value.

Sourcemodule Float : sig ... end
Sourcemodule Complex : sig ... end
Sourceval exact_p : scm -> scm

exact_p v returns #t if v is an exact number and #f otherwise.

Sourceval is_exact : scm -> bool

is_exact v returns true if v is an exact number and false otherwise.

Sourceval inexact_p : scm -> scm

inexact_p v returns #t if v is an exact number and #f otherwise.

Sourceval is_inexact : scm -> bool

is_inexact v returns true if v is an exact number and false otherwise.

Sourceval inexact_to_exact : scm -> scm

inexact_to_exact v converts an inexact value v to its nearest exact counterpart.

Sourceval exact_to_inexact : scm -> scm

exact_to_inexact v converts an exact value v to an inexact representation.

OCaml

Innovation. Community. Security.