mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-11-18 12:03:40 +01:00
1.4 KiB
1.4 KiB
Non-negative float
Type
<<<~Non_negative_float.t~>>
type t = private float
Conversions
val of_float : float -> t
val unsafe_of_float : float -> t
val to_float : t -> float
val of_string : string -> t
val to_string : t -> string
The of_float
function checks that the float is non-negative.
The unsafe variant doesn't do this check.