Html5 number input step and precision

Yacine Zalouani picture Yacine Zalouani · Jan 16, 2013 · Viewed 22.1k times · Source

I can't find out how to define a step value and a precision to a input[number]

1.01 is considered as invalid until I specify a step of 0.01. But In that case I can't specify a specific step.

Same issue with big number. If I specify a step of 1000 and the user type 1001 the value is considered invalid...

You can have a look to this example

Answer

int32_t picture int32_t · Jan 17, 2013

I guess you want to disable step validation. If so, step="any" should work.