Moreover most of mathematical operations(addition, multiplication …..) uses 64-bit floating point format. But in some cases like Array indexing, Bitwise Operations uses 32-bit floating point format.
Number 3 internally would be treated as 3.0 X e0
3 + 2 = 5 23 - 1 = 22 34 * 2 = 68 100/4 = 25
Math.pow(4, 3) //4 to the power of 3 (64) Math.round(1.3) //round to nearest integer (1) Math.ceil(.8) //round up to nearest integer (1) Math.floor(.8) //round down to nearest integer (0) Math.max(1, 40, 20) //maximum number out of all (40) Math.log(10) //natural logarithm of 10 (2.3025) Math.log(100)/Math.LN10 //base 10 logarithm of 100 (2) Math.log(8)/Math.LN2 //base 2 logarithm of 8 (3)
If number > 9007199254740992 X 253 then => Overflow If number > -9007199254740992 X 253 then => Overflow