Why OS field numeric we can input character 'e'

Why OS field numeric we can input character 'e'

  

That happens when you have numerical type input. You can type 'e' character but never stored back so it's safe but it's annoying.

Solution

Hi Halim,

Because 'e' is a valid number character. 

This is the HTML specification:

A floating-point number consists of the following parts, in exactly the following order:

  1. Optionally, the first character may be a "-" character.
  2. One or more characters in the range "0—9".
  3. Optionally, the following parts, in exactly the following order:
    1. a "." character
    2. one or more characters in the range "0—9"
  4. Optionally, the following parts, in exactly the following order:
    1. a "e" character or "E" character
    2. optionally, a "-" character or "+" character
    3. One or more characters in the range "0—9".
Solution

So why we can't save it anyway if it is allowed?

Possibly because you are not using it correctly.

'e' is the exponential symbol. So, to it to be valid, you must use it like this:

2e5 or 10e-3

if it is not followed by the exponential value, it is not valid. And probably must be also preceded by something.

I see thanks

Hi,

Is it possible to disable the input widget to accept 'e' so that it can only accept numerical values like (0-9)?

Thanks

Regards,

Nhorwin