Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can't entirely avoid referring to JavaScript semantics here, type="number" is for values appropriate to represent and work with as IEEE 754 doubles.

That covers a lot of ground, by design. But a 'number' it isn't.



float, floating, double, etc would have been better choices for that type...

Though 'quantity' as described in another post still sounds the best given the sub 1 and add 1 buttons.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: