Standardizes the expression in terms of spacing and user preferences. StandardizeExpression("1.5") -> depends on distance units, but with might be "1.5 mm" StandardizeExpression("1.5", "in") -> "1.5 in" StandardizeExpression("1.5 cm + 1.50001 centimeter") -> "1.5 cm + 1.50001 cm" StandardizeExpression("1.5", "m * m * m / s") -> "1.5 m^3 /s"
"unitsManager_var" is a variable referencing a UnitsManager object.
|
"unitsManager_var" is a variable referencing a UnitsManager object.
|
Type | Description |
string | Returns an empty string AND GetLastError returns ExpressionError in the event of an error. |
Name | Type | Description |
expression | string | The expression to standardize |
units | string | The units to apply to the standardized expression. If not supplied the units will default to the default length specified in the preferences. This is an optional argument whose default value is "DefaultDistance". |