What is the maximum value of a number in Lua?

as compiled by default, the Number is a double, on most compilers that’s an IEEE 64-bit floating point. that means 10bit exponent, so the maximum number is roughly 2^1024, or 5.6e300 years. that’s a long time. now, if you’re incrementing it, you might be more interested in the integer range. the 52-bit mantissa means that … Read more

Is there a Java library for unsigned number type wrappers? [closed]

When I needed this functionality inside of jOOQ, I haven’t found anything like it, so I rolled my own Open Source library that I call jOOU (U for Unsigned): http://github.com/jOOQ/jOOU I understand that some may think this is overkill, but I’d really like to have precisely those wrappers wrapping what other languages call ubyte, ushort, … Read more

‘e’ in javascript numbers

4e4 is a floating-point number representation. It consists of: Sign – S(+ or -) Mantissa – M(some number, normalized: 1.x where x is some sequence of digits) Exponent – E(represents a power of 10 that is Mantissa(M) multiplied with) It is also a way of how floating-point numbers are stored on the system. For instance, … Read more