10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-06-21 12:42:05 +02:00
QCaml/common/non_negative_float.org

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.