Module Mlpost.Num
Abstract numeric values
Conversion functions
val bp : float -> tThe base unit in Mlpost is bp.
val pt : float -> tpt are PostScript points. This is the same unit as the pt unit in TeX
val em : float -> tthe width of an "m"
val ex : float -> tthe height of an "x"
Useful operations on Nums
val addn : t -> t -> tval subn : t -> t -> tval multn : t -> t -> tval multf : float -> t -> tval divf : t -> float -> tval neg : t -> tval divn : t -> t -> tval maxn : t -> t -> tval minn : t -> t -> tval gmean : t -> t -> tthe geometric mean of two nums : sqrt(a * a + b * b)
Infix operators
module Infix : sig ... endUseful constants and functions
type scale= float -> t
module Scale : sig ... end