Here you can find the source of round(Integer a)
Parameter | Description |
---|---|
a | the a |
public static int round(Integer a)
//package com.java2s; public class Main { /**/*from www. ja v a2s. c o m*/ * Round. * * @param a the a * @return the int */ public static int round(Short a) { return Math.round(a.floatValue()); } /** * Round. * * @param a the a * @return the int */ public static int round(Integer a) { return Math.round(a.floatValue()); } /** * Round. * * @param a the a * @return the int */ public static int round(Float a) { return Math.round(a); } /** * Round. * * @param a the a * @return the long */ public static long round(Long a) { return Math.round(a.doubleValue()); } /** * Round. * * @param a the a * @return the long */ public static long round(Double a) { return Math.round(a); } }