Copy as Markdown View as Markdown (opens in new tab) View on GitHub (opens in new tab) Open in... ChatGPT (opens in new tab) Claude (opens in new tab) Perplexity (opens in new tab) round round(number: Number): Number Rounds a number up or down to the nearest whole number. Parameters Name Description number The number to evaluate. Example This example rounds decimal numbers to the nearest whole numbers. Source %dw 2.0 output application/json --- [ round(1.2), round(4.6), round(3.5) ] Output [ 1, 5, 4 ]