/* how can i return the full value not exponential? */
x = 11111111111111111111111112;
y = 23233333333333333333333333;
console.log(x+y);
//how can i return the full value not exponential?
/* how can i return the full value not exponential? */
x = 11111111111111111111111112;
y = 23233333333333333333333333;
console.log(x+y);
//how can i return the full value not exponential?
All the positive and negative integers whose magnitude is no greater than 253 are representable in the Number
type (the integer 0 has two representations, +0 and −0). That means the valid range for Number
is +/- 9007199254740991.
Anything bigger than that range are handled as floating point, in which case it is really difficult to avoid exponent.
let x = 11111111111111111111111112;
let y = 23233333333333333333333333;
console.log(parseFloat(x) + parseFloat(y))
console.log(x+y);
If you want to handle big integers, you can take the help of some library: BigInteger