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