Skip to main content

lookup_float

Function lookup_float 

Source
pub fn lookup_float(key: &str) -> Option<Float>
Expand description

a variant of lookup_value that casts the value into Float

The float counterpart of lookup_number. Float isn’t a TeX register type (see common::float), but binding authors need a fractional read/write pair — e.g. NOMINAL_FONT_SIZE at the 11pt class option is 10.95, which lookup_number/lookup_int would truncate to 10 (issue #542).