Skip to main content

clamp_to_pos

Function clamp_to_pos 

Source
fn clamp_to_pos(inp: i32) -> u32
Expand description

If inp is less than 0, return 0. Otherwise return inp as a u32.