Hi all,
Quite frequently I find myself working integers on various programming tasks. Coming from the previous makers working with integers in Ruby is really easy. The seamless conversion between Fixnum and Bignum meant that as a scripter you didn't even need to care about integer overflow.
As I understand it there is no base integer type in JavaScript, only a floating point value. How do you javascripters typically work in scenarios where you conceptually want integers?
Are there best practices out there? Some nice libraries?
I'd really rather not deal with the complexities of floating points when I don't actually need the decimals.
*hugs*
- Zeriab
Quite frequently I find myself working integers on various programming tasks. Coming from the previous makers working with integers in Ruby is really easy. The seamless conversion between Fixnum and Bignum meant that as a scripter you didn't even need to care about integer overflow.
As I understand it there is no base integer type in JavaScript, only a floating point value. How do you javascripters typically work in scenarios where you conceptually want integers?
Are there best practices out there? Some nice libraries?
I'd really rather not deal with the complexities of floating points when I don't actually need the decimals.
*hugs*
- Zeriab