jquery - Numeric Only Text Field
===

I found this very short clean code to only allow numeric chars in a text field.  Currently it only covers numbers 0-9 and backspace and delete.  I wanted it to also include decimal/period, so I have been fighting with this to simply include keycode 110 and/or 190.  I can not get it to work.  Can anyone see what I am doing wrong?

    $(document).ready(function() {
        $('input.numberinput').bind('keypress', function(e) { 
    return ( e.which!=8 && e.which!=0 && (e.which<48 || e.which>57) ) || (e.which!=110) ? false : true ;
      });
      });