package stdcompat

  1. Overview
  2. Docs
type t = int32

Alias for Int32.t

val min : t -> t -> t
  • since 4.13.0: val min : t -> t -> t
val max : t -> t -> t
  • since 4.13.0: val max : t -> t -> t
val unsigned_div : int32 -> int32 -> int32
  • since 4.08.0: val unsigned_div : int32 -> int32 -> int32
val unsigned_rem : int32 -> int32 -> int32
  • since 4.08.0: val unsigned_rem : int32 -> int32 -> int32
val unsigned_to_int : int32 -> int option
  • since 4.08.0: val unsigned_to_int : int32 -> int option
val unsigned_compare : t -> t -> int
  • since 4.08.0: val unsigned_compare : t -> t -> int
val of_string_opt : string -> int32 option
  • since 4.05.0: val of_string_opt : string -> int32 option
val equal : t -> t -> bool
  • since 4.03.0: val equal : t -> t -> bool
val bits_of_float : float -> int32
  • since 4.03.0:

external bits_of_float : float -> int32 = "caml_int32_bits_of_float" "caml_int32_bits_of_float_unboxed"@@unboxed @@noalloc

  • since 3.08.0:

external bits_of_float : float -> int32 = "caml_int32_bits_of_float"

val float_of_bits : int32 -> float
  • since 4.03.0:

external float_of_bits : int32 -> float = "caml_int32_float_of_bits" "caml_int32_float_of_bits_unboxed"@@unboxed @@noalloc

  • since 3.08.0:

external float_of_bits : int32 -> float = "caml_int32_float_of_bits"

val zero : int32

Alias for Int32.zero

val one : int32

Alias for Int32.one

val minus_one : int32

Alias for Int32.minus_one

val neg : int32 -> int32

Alias for Int32.neg

val add : int32 -> int32 -> int32

Alias for Int32.add

val sub : int32 -> int32 -> int32

Alias for Int32.sub

val mul : int32 -> int32 -> int32

Alias for Int32.mul

val div : int32 -> int32 -> int32

Alias for Int32.div

val rem : int32 -> int32 -> int32

Alias for Int32.rem

val succ : int32 -> int32

Alias for Int32.succ

val pred : int32 -> int32

Alias for Int32.pred

val abs : int32 -> int32

Alias for Int32.abs

val max_int : int32

Alias for Int32.max_int

val min_int : int32

Alias for Int32.min_int

val logand : int32 -> int32 -> int32

Alias for Int32.logand

val logor : int32 -> int32 -> int32

Alias for Int32.logor

val logxor : int32 -> int32 -> int32

Alias for Int32.logxor

val lognot : int32 -> int32

Alias for Int32.lognot

val shift_left : int32 -> int -> int32
val shift_right : int32 -> int -> int32
val shift_right_logical : int32 -> int -> int32
val of_int : int -> int32

Alias for Int32.of_int

val to_int : int32 -> int

Alias for Int32.to_int

val of_float : float -> int32
  • since 4.03.0:

external of_float : float -> int32 = "caml_int32_of_float" "caml_int32_of_float_unboxed" @@unboxed @@noalloc

  • since 3.08.0: external of_float : float -> int32 = "caml_int32_of_float"
  • since 3.07.0: external of_float : float -> int32 = "int32_of_float"
val to_float : int32 -> float
  • since 4.03.0:

external to_float : int32 -> float = "caml_int32_to_float" "caml_int32_to_float_unboxed" @@unboxed @@noalloc

  • since 3.08.0: external to_float : int32 -> float = "caml_int32_to_float"
  • since 3.07.0: external to_float : int32 -> float = "int32_to_float"
val of_string : string -> int32
  • since 3.08.0:

external of_string : string -> int32 = "caml_int32_of_string"

  • since 3.07.0: external of_string : string -> int32 = "int32_of_string"
val to_string : int32 -> string

Alias for Int32.to_string

val compare : t -> t -> int

Alias for Int32.compare

OCaml

Innovation. Community. Security.