In addition to returning information about the accuracy of the scanning operation and the range of text scanned, TNumberScanResult contains the following information, accessible by getter functions:
- CanNormalize indicates whether the string could be normalized.
- IncompleteSign indicates an error involving a plus or minus sign. For example, if you set the number formatter to display the prefix + for positive numbers, and then scan the text 999.99, the operation returns the number positive 999.99 but flags an incomplete sign error.
- OutOfBoundsError indicates that the number was out of the range of the number formatter, and the associated number formatter for out-of-bounds numbers (by default TUniversalNumberFormatter) was used.
- SeparatorError indicates an error in the placement of the digit separator. For example, if you scanned the text 9,99.99, the operation would return the number 999.99 but would flag a separator error.
- ValueOrderError indicates an error in the ordering of the digits, for some numbering systems sensitive to order. For example, if you scanned the Roman numeral IIV, the value order error would be flagged.