Up

module Bigint

: sig
#
type t
include Core_kernel.Std.Int_intf.S with type t := t
#
val to_int64_exn : t -> Core_kernel.Std.Int64.t
#
val to_int : t -> int option
#
val to_int32 : t -> Core_kernel.Std.Int32.t option
#
val to_int64 : t -> Core_kernel.Std.Int64.t option
#
val to_nativeint : t -> nativeint option
#
val of_int : int -> t
#
val of_int32 : Core_kernel.Std.Int32.t -> t
#
val of_int64 : Core_kernel.Std.Int64.t -> t
#
val of_nativeint : nativeint -> t
#
val to_zarith_bigint : t -> Zarith_1_2.Z.t
#
val of_zarith_bigint : Zarith_1_2.Z.t -> t
#
val num_bits : [
| `Bigint_is_unbounded
]
#
val min_value : [
| `Bigint_is_unbounded
]
#
val max_value : [
| `Bigint_is_unbounded
]
#
val shift_right_logical : [
| `Bigint_is_unbounded
]
#
val random : ?state:Core_kernel.Std.Random.State.t -> t -> t

random t produces a value uniformly distributed between zero (inclusive) and t (exclusive), or raises if t <= zero.

#
module Stable : sig
#
module V1 : sig
include sig
#
type __pa_nonrec_0 = t
#
type t = __pa_nonrec_0
end
with type __pa_nonrec_0 := t
#
val compare : t -> t -> int
#
val bin_t : t Core_kernel.Std.Bin_prot.Type_class.t
#
val bin_read_t : t Core_kernel.Std.Bin_prot.Read.reader
#
val __bin_read_t__ : (int -> t) Core_kernel.Std.Bin_prot.Read.reader
#
val bin_reader_t : t Core_kernel.Std.Bin_prot.Type_class.reader
#
val bin_size_t : t Core_kernel.Std.Bin_prot.Size.sizer
#
val bin_write_t : t Core_kernel.Std.Bin_prot.Write.writer
#
val bin_writer_t : t Core_kernel.Std.Bin_prot.Type_class.writer
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end
end
end