Java Ceil ceil(float floatNumber)

Here you can find the source of ceil(float floatNumber)

Description

ceil

License

Open Source License

Declaration

public static int ceil(float floatNumber) 

Method Source Code

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

public class Main {
    public static int ceil(float floatNumber) {
        int truncated = (int) floatNumber;
        return floatNumber > truncated ? truncated + 1 : truncated;
    }//from  w  ww. j  a v a  2  s.co  m
}

Related

  1. ceil(final double num)
  2. ceil(final double num)
  3. ceil(float f)
  4. ceil(float f)
  5. ceil(float f)
  6. ceil(float pX)
  7. ceil(float value)
  8. ceil(float value)
  9. ceil(float x)