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
|