RTML Examples: Formatting Example Information

A number of embeded quotes in the Formatting Example have used one or more the following attributes:

Attribute Description
Name Value
plus 1 | 0 This attribute affects whether positive numerical values will have a plus sign displayed in front of them or not.
toDP integer Formats the incoming value to the specified number of decimal places. Use this attribute in conjunction with the round attribute.
round 'up' | 'down' | 'default' Specifies the type of rounding to take place for the toDP attribute.
addCommas 1 | 0 Set to "1" to add a comma every 3 digits in from the end of the whole number part of the incoming value, "0" otherwise (default if attribute omitted).
toSF integer Use to specify the amount of significant figures to display for the incoming value.
fractionhandling 1 | 2 | 3 This attribute defines the behaviour of RTML when an update contains a fraction of the form: a b/c.