public static class FormatNumber.SubPicture
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
fractionalPartGroupingPositions |
protected boolean |
is31 |
protected boolean |
isPercent |
protected boolean |
isPerMille |
protected int |
maxFractionPartSize |
protected int |
maxWholePartSize |
protected int |
minExponentSize |
protected int |
minFractionPartSize |
protected int |
minWholePartSize |
protected java.lang.String |
prefix |
protected boolean |
regular |
protected int |
scalingFactor |
protected java.lang.String |
suffix |
protected int[] |
wholePartGroupingPositions |
| Constructor and Description |
|---|
SubPicture(int[] pic,
DecimalSymbols dfs) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
format(NumericValue value,
DecimalSymbols dfs,
java.lang.String minusSign)
Format a number using this sub-picture
|
protected int minWholePartSize
protected int maxWholePartSize
protected int minFractionPartSize
protected int maxFractionPartSize
protected int minExponentSize
protected int scalingFactor
protected boolean isPercent
protected boolean isPerMille
protected java.lang.String prefix
protected java.lang.String suffix
protected int[] wholePartGroupingPositions
protected int[] fractionalPartGroupingPositions
protected boolean regular
protected boolean is31
public SubPicture(int[] pic,
DecimalSymbols dfs)
throws XPathException
XPathExceptionpublic java.lang.String format(NumericValue value, DecimalSymbols dfs, java.lang.String minusSign)
value - the absolute value of the number to be formatteddfs - the decimal format symbols to be usedminusSign - the representation of a minus sign to be usedCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.