Android Float Round getIntWithRound(float f)

Here you can find the source of getIntWithRound(float f)

Description

get Int With Round

License

Apache License

Declaration

public static int getIntWithRound(float f) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static int getIntWithRound(float f) {
        return Math.round(f);
    }/*from   w w w .j a  v a 2 s.  com*/
}

Related

  1. getFloatWithADecimal(float f)
  2. FloatToInt(float f)
  3. round(float d, int decimalPlace)