Error when using numbers in custom forms

Error when using numbers in custom forms

I have created a custom form to let employees book their worked hours. For the hours I have added a number field. When I create a record with decimal hours (e.g. 5.50) the number will completely disappear on saving! :(