10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-29 16:34:43 +02:00
QCaml/common/lib/charge.mli

31 lines
413 B
OCaml
Raw Normal View History

2024-01-17 10:30:24 +01:00
(** Type *)
2018-01-02 22:02:01 +01:00
2020-12-27 13:43:55 +01:00
type t
2018-01-02 22:02:01 +01:00
2020-12-27 13:43:55 +01:00
2024-01-17 10:30:24 +01:00
(** Conversions *)
2020-12-27 13:43:55 +01:00
2018-03-16 00:23:47 +01:00
val of_float : float -> t
2020-12-27 13:43:55 +01:00
val to_float : t -> float
2018-01-02 22:02:01 +01:00
val of_int : int -> t
2020-12-27 13:43:55 +01:00
val to_int : t -> int
2018-03-16 00:23:47 +01:00
val of_string: string -> t
2020-12-27 13:43:55 +01:00
val to_string: t -> string
2018-01-02 22:02:01 +01:00
2018-03-16 00:23:47 +01:00
2024-01-17 10:30:24 +01:00
(** Simple operations *)
2018-03-03 22:13:14 +01:00
val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
val ( * ) : t -> float -> t
2024-01-17 10:30:24 +01:00
val ( / ) : t -> float -> t
2021-01-01 11:46:11 +01:00
val is_null : t -> bool
2018-03-03 22:13:14 +01:00
2018-03-16 00:23:47 +01:00
2024-01-17 10:30:24 +01:00
(** Printers *)
2018-03-16 00:23:47 +01:00
2020-12-27 13:43:55 +01:00
val pp : Format.formatter -> t -> unit
2024-01-17 10:30:24 +01:00