Here you can find the source of roundToQuarterMs(float f)
Parameter | Description |
---|---|
f | a parameter |
public static float roundToQuarterMs(float f)
//package com.java2s; // LICENSE: This file is distributed under the BSD license. public class Main { /**//w w w. j a v a 2s . c o m * rounds to nearest increment of 0.25 * @param f * @return */ public static float roundToQuarterMs(float f) { return ((float) Math.round(f * 4)) / 4; } }