Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

i32_dec

Function i32_dec 

Source
pub fn i32_dec(buf: &mut [u8], v: i32) -> &str
Expand description

Format v as decimal ASCII into buf, returning the digits as &str.

buf must be at least I32_DEC_MAX bytes for the general case. Handles i32::MIN (no negate overflow: magnitude goes through u32).