alwz
Version:
Extendable library for typecasting
20 lines • 547 B
JavaScript
export const 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),
],
};
export const floats = {
double: [-Number.MAX_VALUE, Number.MAX_VALUE],
};
//# sourceMappingURL=numbers.mjs.map