This shows you the differences between two versions of the page.
java:lang:math:round [2013/04/08 09:25] 94.222.245.67 created |
java:lang:math:round [2024/02/16 01:12] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== round ====== | + | ====== Math.round ====== |
rounds a number | rounds a number | ||
- | ===== example of java.lang.Math.round ===== | + | ===== example of round in java ===== |
<code java> | <code java> | ||
- | /* | + | |
- | * To change this template, choose Tools | Templates | + | |
- | * and open the template in the editor. | + | |
- | */ | + | |
package roundanumber; | package roundanumber; | ||
import java.lang.Math; | import java.lang.Math; | ||
- | /** | + | |
- | * | + | |
- | * @author dgohlke | + | |
- | */ | + | |
public class Roundanumber { | public class Roundanumber { | ||
- | /** | + | |
- | * @param args the command line arguments | + | |
- | */ | + | |
public static void main(String[] args) { | public static void main(String[] args) { | ||
// TODO code application logic here | // TODO code application logic here |