This version is out of date, covering development from v9.5.0 to v9.7.3. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox v9 Icon

Number.round()


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Last Altered: 

 Function  [other Function type actions]

 Item  [operators of similar scope]

 Mathematical  [other Mathematical operators]

 9.5.2

 As at baseline


Syntax note: Operators without any defined mandatory arguments may omit their empty closing parentheses


Number.round()

From v9.5.2, Number.round() rounds the value of its chained source number argument to the nearest integer. A partial integer over .50 always round up, everything else rounds down.

See round() for a fuller explanation of the logic and possible usage.

See also Number.ceil() and Number.floor().