Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 771 Bytes

Ceil.md

File metadata and controls

42 lines (28 loc) · 771 Bytes

Math,Ceil

Returns a number rounded up to the next integer.

Syntax

Math,Ceil,<DestVar>,<Value>,<Unit>

Arguments

Argument Description
DestVar The variable where the result will be stored.
Value The number to round up.
Unit Unit to round up to. (ex. Nearest 10, 20, 100, etc)

Remarks

File sizes can be rounded up to the nearest Kb/MB/Gb/Tb/Pb using StrFormat,Ceil.

Related

Floor, Round, StrFormat,Ceil

Examples

Example 1

[Main]
Title=Math-Ceil Example
Description=Show usage of the Math,Ceil Command
Author=Homes32

[Variables]

[Process]
Math,Ceil,%result%,32,10
Message,"32 rounded UP to the nearest 10 = %result%"