When the result of a Script SmartName is a number, you want to convert the result to another unit and/ or round the result to a certain number of decimals.
Procedure
Example: A Script SmartName to calculate the sum of two SmartNames representing the left and right margin from an XML file, in millimeters.
Script
[Left Margin] + [Right Margin]
The following procedure describes how to convert the result of this Script SmartName to another unit and/ or round the result to a certain number of decimals.
For Automation Engine 12:
To convert the result of the sum of the two SmartNames to another unit (in this case inches), multiply the result of the sum with the factor needed to convert it to the other unit, using JavaScript.
To convert the result of the Script SmartName (or any other type of SmartName) to another unit and/ or round the result to a certain number of decimals, use the SmartName Formatting Options.