Table of Contents

Calculate Token

The %Calculate%<formula>% token returns the numeric result of performing a calculation, where <formula> may be any of the following:

The %Hex2% token (v8+) returns the value in Hex format, padded with zeros to two digits. “2” is just an example, you can use %Hex8% for example.

The %Dec2% token (v8+) returns the value in decimal format, padded with zeros to two digits (similarly %Dec5% to five digits, etc).

The %Oct3% token (v8+) returns the value in octal format, padded with zeros to three digits (similarly % Oct5% to five digits, etc).

The %Bin8% token (v8+) returns the value in binary format, padded with zeros to eight digits (similarly % Bin16% to 16 digits digits, etc).

Example Action

A reminder that the following are only equivalent if the Variable is numeric:

So, if MyVar is “005”, then

See Also

Actions

Tokens