net.sf.saxon.functions
public class FormatNumber2 extends SystemFunction implements XSLTFunction
Method Summary | |
---|---|
static BigDecimal | adjustToDecimal(double value, int precision)
Convert a double to a BigDecimal. |
void | checkArguments(StaticContext env) |
String | evaluateAsString(XPathContext context)
Evaluate in a context where a string is wanted |
Item | evaluateItem(XPathContext c)
Evaluate in a general context |
void | fixup(DecimalSymbols dfs)
Fixup: this is a callback from the DecimalFormatManager used once the xsl:decimal-format
element is identified |
Expression | preEvaluate(StaticContext env)
preEvaluate: this method suppresses compile-time evaluation by doing nothing.
|
Parameters: value the double to be converted precision 2 for a double, 1 for a float
Returns: the result of conversion to a double