Here you can find the source of ceil(float f)
Parameter | Description |
---|
public static int ceil(float f)
//package com.java2s; //License from project: Open Source License public class Main { /**//from ww w.java 2 s.c o m * Rounds the given number up to an int. * @param float * @returns the ceiled value */ public static int ceil(float f) { return (int) (f + (1f - f % 1f)); } }