10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-12-22 20:33:36 +01:00
QCaml/common/lib/charge.mli
2024-01-17 10:30:24 +01:00

31 lines
413 B
OCaml

(** Type *)
type t
(** Conversions *)
val of_float : float -> t
val to_float : t -> float
val of_int : int -> t
val to_int : t -> int
val of_string: string -> t
val to_string: t -> string
(** Simple operations *)
val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
val ( * ) : t -> float -> t
val ( / ) : t -> float -> t
val is_null : t -> bool
(** Printers *)
val pp : Format.formatter -> t -> unit