Skip to content

round

round(n): number

Defined in: Data/Num.ts:162

Rounds a number to the nearest integer.

number

number

pipe(3.5, Num.round); // 4
pipe(3.4, Num.round); // 3