public class RoundUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double |
bround(double input,
int scale) |
static HiveDecimal |
bround(HiveDecimal input,
int scale) |
static long |
bround(long input,
int scale) |
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 double bround(double input, int scale)
public static long round(long input, int scale)
public static long bround(long input, int scale)
public static HiveDecimal round(HiveDecimal input, int scale)
public static HiveDecimal bround(HiveDecimal input, int scale)
Copyright © 2016 The Apache Software Foundation. All rights reserved.