net.sf.saxon.functions
public class FormatNumber extends SystemFunction
| Method Summary | |
|---|---|
| static BigDecimal | adjustToDecimal(double value, int precision)
Convert a double to a BigDecimal. |
| void | checkArguments(ExpressionVisitor visitor) |
| Expression | copy()
Copy an expression. |
| CharSequence | evaluateAsString(XPathContext context)
Evaluate in a context where a string is wanted |
| Item | evaluateItem(XPathContext c)
Evaluate in a general context |
| Expression | preEvaluate(ExpressionVisitor visitor)
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
Returns: the copy of the original expression
Parameters: visitor the expression visitor