2021-01-28 00:34:26 +01:00
|
|
|
(* Type
|
|
|
|
*
|
|
|
|
* <<<~Charge.t~>>> *)
|
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
|
|
|
|
2022-11-07 14:59:11 +01:00
|
|
|
(* [[file:~/QCaml/common/charge.org::*Simple operations][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 *)
|