validate numbers in method arguments [fix #23]

now do the same thing as core perl functions:
 ◦ warn with same message when not number; use 0
 ◦ warn with same message when number followed by non-numeric; strip non-numeric