Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Math.round

import java.lang.*;

public class MathDemo {

   public static void main(String[] args) {
   
   //what is Math.round(3.45)

      double x = 3.45;

      System.out.println("Math.round(" + x + ")=" + Math.round(x));
   }
}

//the Output is 3
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
6+2 =