10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-26 15:12:05 +02:00
QCaml/common/lib/charge.mli

39 lines
800 B
OCaml
Raw Normal View History

2020-12-27 23:08:12 +01:00
(* Type *)
2018-03-03 21:33:32 +01:00
2018-01-02 22:02:01 +01:00
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/common/charge.org::*Type][Type:1]] *)
2020-12-27 13:43:55 +01:00
type t
(* Type:1 ends here *)
2018-01-02 22:02:01 +01:00
2020-12-27 23:08:12 +01:00
(* Conversions *)
2020-12-27 13:43:55 +01:00
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/common/charge.org::*Conversions][Conversions:1]] *)
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
2020-12-27 23:08:12 +01:00
(* Conversions:1 ends here *)
2018-01-02 22:02:01 +01:00
2020-12-27 13:43:55 +01:00
(* Simple operations *)
2018-03-16 00:23:47 +01:00
2018-03-03 22:13:14 +01:00
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/common/charge.org::*Simple%20operations][Simple operations:1]] *)
2018-03-03 22:13:14 +01:00
val ( + ) : t -> t -> t
val ( - ) : t -> t -> t
val ( * ) : t -> float -> t
2021-01-01 11:46:11 +01:00
val ( / ) : t -> float -> t
val is_null : t -> bool
2020-12-27 13:43:55 +01:00
(* Simple operations:1 ends here *)
2018-03-03 22:13:14 +01:00
2020-12-27 13:43:55 +01:00
(* Printers *)
2018-03-16 00:23:47 +01:00
2021-01-01 16:39:33 +01:00
(* [[file:~/QCaml/common/charge.org::*Printers][Printers:1]] *)
2020-12-27 13:43:55 +01:00
val pp : Format.formatter -> t -> unit
(* Printers:1 ends here *)