3 ms·
In JavaScript I assume it’s worse because most people would assume the existence of some sort of integer type but the number silently “becomes a floating point”
by saagarjha 6y ago
In JavaScript I assume it’s worse because most people would assume the existence of some sort of integer type but the number silently “becomes a floating point” instead, which can be confusing.
- Gibbon1 6y agoI don't use JavaScript but JavaScript using binary floating point always makes me shake my head in disbelief. You got a language designed from the start to deal with user input that can't represent decimal numbers and fractions.