StrFormat,[ CEIL / FLOOR]

Syntax

StrFormat,<Action>,<%var%>,<%size%>

These functions will round up or down the variables value as specified to the nearest "size". Here "size" may be:

The action selected is either:

Example:

In this given example we are rounding up the value of %var% to the next multiple of %size%. The result is written back into %var% with the value of 40.

Set,%var%,37
Set,%size%,10
StrFormat,CEIL,%Var%,%size%