Number.RoundAwayFromZero

About

Returns Number.RoundUp(value) when value >= 0 and Number.RoundDown(value) when value < 0.

Syntax

Number.RoundAwayFromZero(value as nullable number) as nullable number  

Arguments

Argument Description
value Value to round away from zero.

Examples

Number.RoundAwayFromZero(-1.2) equals -2  
Number.RoundAwayFromZero(1.2) equals 2