Latest post

Nov 19, 2024, 17:57:17

The <input type="number"> is so evil. I thought that entering 1e309 will have its value return 1e309 and that converting it to a number will give me infinity. Nope, it will return an empty string, and converting it to a number gets me zero. Note that 1e309 IS A VALID FLOATING-POINT NUMBER according to the #HTML standard.

#web #webdev #javascript #coding

follow me on Mastodon

Articles

subscribe via RSS