Math Object: ============ ==> static object ==> no need to create any object for representing/accessing the data with Math object. ==> to access the math constant/property: Math.property-name Math Constants/Properties: =========================== console.log(Math.E); console.log(Math.PI); console.log(Math.SQRT2); console.log(Math.SQRT1_2); console.log(Math.LN10); console.log(Math.LN2); console.log(Math.LOG10E); console.log(Math.LOG2E); ============================================== Math Object Methods: ==================== 1) round(): =========== ==> this can use to get the approximate integer value for the any number (Integer/float). Syntax: Math.round(number) var a = 1.299; var b = 21; var c = 1.74; console.log(Math.round(a)); console.log(Math.round(b)); console.log(Math.round(c)); ==================================== 2) ceil(): ========== ==> use to get the next approximate integer value for given float value. Syntax: Math.ceil(value); 1.2 10 3) floor(): =========== ==> use to get the previous approximate integer value for the given float. 1.2 Syntax: Math.floor(value); a = 1.000 b = 123 c = 9.0000719; console.log(Math.ceil(a)+" "+Math.floor(a)); console.log(Math.ceil(b)+" "+Math.floor(b)); console.log(Math.ceil(c)+" "+Math.floor(c)); ===================================================== trunc(): ======= ==> can remove the fractional part from the given number and return the decimal value. Syntax: Math.trunc(value); console.log(Math.round(1.554)+" "+Math.trunc(1.554)); console.log(Math.round(1554)+" "+Math.trunc(1554)); console.log(Math.round(1.4554)+" "+Math.trunc(1.4554)); ============================================================ sign(): ======= ==> can return : -1 for negative numbers 1 : for positive numbers 0 : for 0 Syntax: Math.sign(number) console.log(Math.sign(-0.123)); console.log(Math.sign(-123)); console.log(Math.sign(123)); console.log(Math.sign(213)); console.log(Math.sign(0)); console.log(Math.sign(0.0001)); ========================================= abs(): ===== ==> return a positive value for any number. Syntax: Math.abs(value) console.log(Math.abs(-100)); console.log(Math.abs(100)); ======================================= pow(): ===== Syntax: Math.pow(v1, v2) ==> v1 ^ v2 console.log(Math.pow(5,7)); ====================================== sqrt(): ====== Syntax: Math.sqrt(value) console.log(Math.sqrt(88)); =========================================== log methods:: ============= console.log(Math.log(3)); console.log(Math.log10(10)); console.log(Math.log(10)); console.log(Math.log10(3)); console.log(Math.log2(123)); ============================= Trigonometric Methods: ====================== sin() cos() tan() sinh() cosh()