I have an input with a type of number. When I was testing it out, I discovered that when I typed the letter e
, it appeared in the text box. Any other letter did not: the input was a number. Why is a letter allowed in this input type?
Asked
Active
Viewed 104 times
0

yaakov
- 4,568
- 4
- 27
- 51
-
1Maybe because [e is a mathematical constant](https://en.wikipedia.org/wiki/E_%28mathematical_constant%29)? :) – Daniel Lyons Sep 04 '15 at 16:18
-
4scientific notation? – r3wt Sep 04 '15 at 16:18
-
2@daniel my guess is it's because it's a valid character in floating point literals – John Dvorak Sep 04 '15 at 16:19
-
1I hate math, but I guess that makes sense. – yaakov Sep 04 '15 at 16:19