public class CurrencyUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Double |
addDoubleStringsDb(String strval1,
String strval2) |
static int |
compare(double d1,
double d2)
Compare two currency values rounded to the defined currency precision
|
static Double |
readCurrency(String sValue) |
static Double |
readDouble(String sValue) |
static Double |
readPercent(String sValue) |
static double |
round(double dValue) |
static Double |
round(Double dValue,
int fraction)
Round a double value to a fraction of the given precision.
|
public static double round(double dValue)
public static Double round(Double dValue, int fraction)
dValue - the double value to be roundedfraction - is an integer value in the range 1..m_dFractionMultiplier,
e.g. if m_dFractionMultiplier=100,0 a value of fraction=50 will round
to 50 cents.public static int compare(double d1,
double d2)
d1 - fist double valued2 - second double valueCopyright © 2021. All rights reserved.