alwz
Version:
Extendable library for typecasting
23 lines • 658 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.floats = exports.integers = void 0;
exports.integers = {
byte: [-128, 127],
short: [-32768, 32767],
int: [-2147483648, 2147483647],
long: [
Math.max(-(Math.pow(2, 63)), Number.MIN_SAFE_INTEGER),
Math.min((Math.pow(2, 63)) - 1, Number.MAX_SAFE_INTEGER),
],
ubyte: [0, 255],
ushort: [0, 65535],
uint: [0, 4294967295],
ulong: [
0,
Math.min((Math.pow(2, 64)) - 1, Number.MAX_SAFE_INTEGER),
],
};
exports.floats = {
double: [-Number.MAX_VALUE, Number.MAX_VALUE],
};
//# sourceMappingURL=numbers.cjs.map