package containers

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Int64

Helpers for in64.

  • since 0.13
type t = int64
val (+) : t -> t -> t
val (-) : t -> t -> t
val (~-) : t -> t
val (*) : t -> t -> t
val (/) : t -> t -> t
val (mod) : t -> t -> t
val abs : t -> t
val max_int : t
val min_int : t
val (land) : t -> t -> t
val (lor) : t -> t -> t
val (lxor) : t -> t -> t
val lnot : t -> t
val (lsl) : t -> int -> t
val (lsr) : t -> int -> t
val (asr) : t -> int -> t
val equal : t -> t -> bool
val compare : t -> t -> int
val hash : t -> int

Conversion

val to_int : t -> int
val of_int : int -> t option
val of_int_exn : int -> t

Alias to Int64.of_int

  • raises Failure

    in case of failure

val to_int32 : t -> int32
val of_int32 : int32 -> t option
val of_int32_exn : int32 -> t

Alias to Int64.of_int32

  • raises Failure

    in case of failure

val to_nativeint : t -> nativeint
val of_nativeint : nativeint -> t option
val of_nativeint_exn : nativeint -> t

Alias to Int64.of_nativeint

  • raises Failure

    in case of failure

val to_float : t -> float
val of_float : float -> t option
val of_float_exn : float -> t

Alias to Int64.of_float

  • raises Failure

    in case of failure

val to_string : t -> string
val of_string : string -> t option
val of_string_exn : string -> t
OCaml

Innovation. Community. Security.