public class DecimalTransform extends Object
| Constructor and Description |
|---|
DecimalTransform() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
abs(BigDecimal bd)
Get the absolute value
|
static BigDecimal |
add(BigDecimal bd1,
Object o)
Add a value to a column
|
static BigDecimal |
decimal_left(BigDecimal bd,
int n)
Move the decimal point n places to the left
|
static BigDecimal |
decimal_right(BigDecimal bd,
int n)
Move the decimal point n places to the right
|
static BigDecimal |
divideq(BigDecimal bd1,
Object o)
Divide the column by a given value and return the quotient
|
static BigDecimal |
divider(BigDecimal bd1,
Object o)
Divide the column by a given value and return the remainder
|
static BigDecimal |
multiply(BigDecimal bd1,
Object o)
Multiply the column by a given value
|
static BigDecimal |
negate(BigDecimal bd)
Negate a decimal
|
static BigDecimal |
pow(BigDecimal bd,
int pow)
Get the nth power of a decimal
|
static int |
precision(BigDecimal bd)
Get the precision of a decimal value
|
static int |
scale(BigDecimal bd)
Get the scale of a decimal value
|
static int |
sign(BigDecimal bd)
Sign of a value
|
static BigDecimal |
strip_zero(BigDecimal bd)
Strip trailing zeros in a decimal
|
static BigDecimal |
subtract(BigDecimal bd1,
Object o)
Subtract a value from a column
|
static BigInteger |
unscaled(BigDecimal bd)
Get the unscaled value of a decimal value
|
public static BigDecimal add(BigDecimal bd1, Object o)
public static BigDecimal subtract(BigDecimal bd1, Object o)
public static BigDecimal multiply(BigDecimal bd1, Object o)
public static BigDecimal divideq(BigDecimal bd1, Object o)
public static BigDecimal divider(BigDecimal bd1, Object o)
public static BigDecimal abs(BigDecimal bd)
public static int precision(BigDecimal bd)
public static int scale(BigDecimal bd)
public static BigInteger unscaled(BigDecimal bd)
public static BigDecimal decimal_left(BigDecimal bd, int n)
public static BigDecimal decimal_right(BigDecimal bd, int n)
public static BigDecimal pow(BigDecimal bd, int pow)
public static BigDecimal negate(BigDecimal bd)
public static BigDecimal strip_zero(BigDecimal bd)
public static int sign(BigDecimal bd)
Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.