module Num:sig..end
Abstract numeric values
Numerics are a symbolic representation of numeric values.
In many cases, but not always, an object of type Num.t is intended to be
a length in some unit. In addition, values of type Num.t may actually be
unknown to Mlpost. This is why there is no function that gives back a
float.
typet =float
The Mlpost numeric type is an abstract datatype
val of_float : float -> tConvert a float into a Num.t
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 cm : float -> t
val mm : float -> t
val inch : float -> tThe following are units dependent of the font used
val em : float -> tthe width of an "m"
val ex : float -> tthe height of an "x"
val addn : t -> t -> t
val subn : t -> t -> t
val multn : t -> t -> t
val multf : float -> t -> t
val divf : t -> float -> t
val neg : t -> t
val divn : t -> t -> t
val maxn : t -> t -> t
val minn : t -> t -> t
val gmean : t -> t -> tthe geometric mean of two nums : sqrt(a * a + b * b)
val if_null : t -> t -> t -> tif_null n n1 n2 is equal to n1 if n is null, n2 othewise
module Infix:sig..end
val zero : t
val one : t
val two : tShortcuts for bp 0., bp 1. and bp 2..
val pi : float3 .14159
val deg2rad : float -> floatConverts degrees into radians
typescale =float -> t
module Scale:sig..end