public final class CSFormatValue
extends java.lang.Object
The CSFormatValue
class includes methods for formating a specified value to either a specified number
of decimal places or the number of decimal places defined by the iCM Commerce Settings.
Modifier and Type | Method and Description |
---|---|
static double |
format(double nValue,
int nDecimalPlaces)
Format the specified value to the specified number of decimal places.
|
static double |
format(java.lang.String strPropertyFile,
double nValue)
Format the specified value to the number of decimal places defined by the iCM Commerce Settings.
|
public static double format(double nValue, int nDecimalPlaces)
nValue
- the value to be formattednDecimalPlaces
- the number of decimal places of the formatted value, if less than zero then zero will be usedpublic static double format(java.lang.String strPropertyFile, double nValue) throws CSException
strPropertyFile
- the property file that contains the connection details.nValue
- the value to be formattedCSException
- the base class for exceptions thrown by this method.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.