Here you can find the source of ceilToQuarterMs(float f)
Parameter | Description |
---|---|
f | a parameter |
public static float ceilToQuarterMs(float f)
//package com.java2s; // LICENSE: This file is distributed under the BSD license. public class Main { /**/* w w w . ja va 2 s. c o m*/ * "rounds up" to nearest increment of 0.25, e.g. 0.0 goes to 0.0 but 0.01 goes to 0.25 * @param f * @return */ public static float ceilToQuarterMs(float f) { return (float) (Math.ceil(f * 4) / 4); } }