mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-09-12 06:28:31 +02:00
1.3 KiB
1.3 KiB
Non-negative float
Type
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.