XML Script logo
Rounding in interpolations
Code
# $.roundedNumber := round(1 / 4, 1) #This number: # $.roundedNumber # has been rounded
# $.thousands := round(12345, -3) #This number: # $.thousands # rounds to thousands
Output
This number: 0.3 has been rounded
This number: 12000 rounds to thousands
Ref

x.1101

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