wp_check_numeric num
Verifies that $num is numeric; otherwise bails (someone is playing games with us).
Source code:
expr double($num) return $num