Инструменты пользователя

Инструменты сайта


en:autorun:documentation:round

Round

Round(<value> [, <round>])

The function returns the passed value rounded to the specified number of digits. Rounding is done according to standard rules.

Parameters

valueThe value on which the operation will be performed.
roundThe number of decimal places to round to. If this number is zero or omitted, it is rounded up to an integer value.

Related

Ceil, Floor

Examples

MsgBox(Round(1.2778, 2)) # --> 1.28
MsgBox(Round(2.708))     # --> 3
en/autorun/documentation/round.txt · Последнее изменение: 2022/10/17 16:15 — loopback

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki