3 ms·
As someone mostly stuck in the C, C++, C#, assembly, and BASIC, this is new to me. In those languages, an integer is actually infinite precision with limited r
by falcrist 8y ago
As someone mostly stuck in the C, C++, C#, assembly, and BASIC, this is new to me.
In those languages, an integer is actually infinite precision with limited range. A quick Google shows that the "number" primitive in JavaScript is a double. Are you telling me JavaScript has NO integer type?
Maybe I haven't seen enough languages yet, but that seems pretty crazy to me.
- rocqua 8y agoI agree with you on all points. I don't think I've ever written more than 100 lines of javascript. And a lot more of the C like stuf. Yet, I do see the morbid sense in only using floats.
- colejohnson66 8y agoNo you’re right. There is no integer-like type in Javascript. Only floating point