Sabtu, 26 Januari 2019

Math.Ceil() Inwards Javascript

     The Math.ceil() component subdivision returns the smallest integer greater than or equal to a given number. ceil() is a static method of Math, yous e'er role it every bit Math.ceil(), rather than every bit a method of a Math object yous created (Math is non a constructor).

Syntax
    Math.ceil(number);


Example
    Math.ceil(.97);   // 1
   Math.ceil(0.3);     // 1
   Math.ceil(3);     // 3
   Math.ceil(7.003); // 8


Example Program:- (Editor)


Editor is Loading...

Advertisement

Tidak ada komentar:

Posting Komentar