Here you can find the source of round(final float value)
public static int round(final float value)
//package com.java2s; public class Main { public static int round(final float value) { return (int) (value + (0.5f * Math.signum(value))); }/*from w w w.j a v a2 s .c om*/ public static long round(final double value) { return (long) (value + (0.5d * Math.signum(value))); } }