public class MathUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static double |
roundWithGivenPrecision(double data) |
static double |
roundWithGivenPrecision(double data,
int size) |
static float |
roundWithGivenPrecision(float data) |
static float |
roundWithGivenPrecision(float data,
int size) |
public static float roundWithGivenPrecision(float data,
int size)
data - data should be less than Long.MAX_VALUE. otherwise Math.round() will return wrong
value.public static float roundWithGivenPrecision(float data)
public static double roundWithGivenPrecision(double data,
int size)
data - data should be less than Long.MAX_VALUE. otherwise Math.round() will return wrong
value.public static double roundWithGivenPrecision(double data)
data - data should be less than Long.MAX_VALUE. otherwise Math.round() will return wrong
value.Copyright © 2022 The Apache Software Foundation. All rights reserved.