Function wgpu::web_sys::js_sys::parse_int

source ·
pub fn parse_int(text: &str, radix: u8) -> f64
Available on webgl or webgpu only.
Expand description

The parseInt() function parses a string argument and returns an integer of the specified radix (the base in mathematical numeral systems), or NaN on error.

MDN documentation