public class RoundUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double |
round(double input,
int scale)
Rounding a double is approximate, as the double value itself is approximate.
|
static HiveDecimal |
round(HiveDecimal input,
int scale) |
static long |
round(long input,
int scale) |
public static double round(double input, int scale)
input
- input valuescale
- decimal placepublic static long round(long input, int scale)
public static HiveDecimal round(HiveDecimal input, int scale)
Copyright © 2017 The Apache Software Foundation. All rights reserved.