XML Script logo
Formatting and truncating
Code
This number: # format(99, 3, 0) # is forced to three digits
This number: # format(99, 3, 2) # also has two decimal places
This number: # format(round(12345, -3), 6, 0) # is rounded and formatted
Output
This number: 099 is forced to three digits
This number: 099.00 also has two decimal places
This number: 012000 is rounded and formatted
Ref

x.1201

XML Script homepage | Documentation home | XML Script docs | Command list | Function list | X-Tract docs

X-Stream, X-Tract and XML Script are trade marks of DecisionSoft Limited
© Copyright 1998-2000 DecisionSoft Limited