SYNTAX

<Number1>.max(<Number2>)

Returns either <Number1> or <Number2>, whichever is greater.

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

The following Rulesheet uses .max to compare the values of decimal1 and decimal2, and integer1 and integer2, and posts a message based on their size relative to 5.0 and 8, respectively.

A sample Ruletest provides four examples, two using decimal1 and decimal2, and two using integer1 and integer2 as input data.