Skip to main content

to_int

Function to_int 

Source
pub fn to_int(v: &Value) -> DogeResult
Expand description

int(x) — Int unchanged, Float and Decimal truncated toward zero, Bool to 0/1, a Str parsed as a whole number (of any size). A Str that isn’t a number is a catchable ValueError; other types are a TypeError.