Groovy/Grails Float value and HTML5 number input
问题 In Groovy/Grails 2.0 I've got a domain with Float variable ( Float weight = 25.28 for example ). When Grails generates form with corresponding number input field, validation complains about the 25.28 value and will only accept an int value. Could someone illuminate what's going on with that? Thanks in advance. EDIT: In Gails domain object(Double and BigDecimal for the sake of argument): Double weight = 350.26; BigDecimal width = 86.1; Generated html: <input id="weight" type="number" value=