Documentation moved.This entry is now part of the unified function reference. Open the unified page → API/nerdamer APIFunctionnerdamer.roundsrc/index.ts:781nerdamer.round(x: ExpressionInput, n?: ExpressionInput): ExpressionRounds a number to the nth decimal place. If no precision is provided, rounds to the nearest integer.ParametersNameTypeDescriptionxExpressionInputThe expression to round.nExpressionInputThe number of decimal places to round to. Defaults to `0`.ReturnsExpression — The rounded value of `x`.Examplesround('3.7').text() // "4" round('2.555', 2).text() // "2.56" round('1/3', 4).text() // "0.3333"