change this to 0
+ at the beginning of this function - insert: `n = as_int(n)`