sanitize_number helper method

I proposed a sanitization_number helper method. I need the verifications. I will appreciate your contributions.

http://dev.rubyonrails.org/ticket/10761

Regards.