Java Float Number Round round(final float f)

Here you can find the source of round(final float f)

Description

round

License

Open Source License

Declaration

public static final int round(final float f) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static final int round(final float f) {
        return (int) (f > 0 ? f + 0.5F : f - 0.5F);
    }//  w ww  .  j a v a 2 s. com
}

Related

  1. round(final float a)
  2. round(final float val)
  3. round(final float value)
  4. round(final float x, final float roundFactor)
  5. round(float a)