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) floor floor(number: Number): Number Rounds a number down to the nearest whole number. Parameters Name Description number The number to evaluate. Example This example rounds numbers down to the nearest whole numbers. Notice that 1.5 rounds down to 1. Source %dw 2.0 output application/json --- [ floor(1.5), floor(2.2), floor(3) ] Output [ 1, 2, 3]