Skip to content

Welshman Docs / @welshman/lib / round

Function: round() ​

round(precision, x): number

Defined in: packages/lib/src/Tools.ts:439

Round a number to the nearest float precision

Parameters ​

precision ​

number

Number of decimal places

x ​

number

Number to round

Returns ​

number

Formatted number