10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-16 08:00:22 +02:00
QCaml/common/lib/non_negative_float.mli

15 lines
348 B
OCaml
Raw Normal View History

2023-06-27 10:15:50 +02:00
(** $x \ge 0$ *)
2018-02-23 18:44:31 +01:00
type t = private float
2020-12-27 23:08:12 +01:00
2023-06-27 10:15:50 +02:00
(** Conversions *)
2020-12-27 23:08:12 +01:00
val of_float : float -> t
2023-06-27 10:15:50 +02:00
(** Checks that the float is non-negative. *)
2018-06-13 19:03:42 +02:00
val unsafe_of_float : float -> t
2023-06-27 10:15:50 +02:00
(** Fast conversion without checking that the float is non-negative. *)
2020-12-27 23:08:12 +01:00
2023-06-27 10:15:50 +02:00
val to_float : t -> float
2020-12-27 23:08:12 +01:00
val of_string : string -> t
val to_string : t -> string