Skip to main content

str2num

Function str2num 

Source
pub fn str2num(s: &[u8], int_ok: bool, hex_float_ok: bool) -> Option<Num>
Expand description

luaO_str2num: optional surrounding whitespace and sign, decimal or hex. Used by VM string→number coercion and tonumber.