Module type Units.MetersType

Meters, with conversion to and from other units.

The module uses float internally, but this can be hidden by forcing its type to be MetersType (without the with type annotation.

include Unit
type t
val to_float : t -> float
val of_float : float -> t
val to_km : t -> float

To and from kilometers.

val of_km : float -> t
val to_mile : t -> float

To and from the international mile.

val of_mile : float -> t
val to_yard : t -> float

To and from the international yard.

val of_yard : float -> t
val to_ft : t -> float

To and from the international foot.

val of_ft : float -> t