XML Script logo
Rounding numbers in interpolations
Usage

Numbers can be rounded within interpolations by using the round() function. The round() function takes two arguments, number and number of decimal places. Negative values for the number of decimal places will be interpreted as rounding to the left of the decimal point. The round() function rounds to the nearest value with .5 rounding upwards.

Examples

Rounding in interpolations

Rounding and maxDP used together

Version

1.0

Ref

t.11

Date

14 March 1999

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