n8n LabBeginner

Round Decimal Numbers in n8n using JavaScript Math

An invoice calculation returned a long decimal number. Round it to 2 decimal places.

Live Execution Simulator Idle
πŸ“₯
Incoming Data
βš™οΈ
n8n Node
🎯
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.

Incoming Payload / Data:

{
  "amount": 49.9982
}
$json.amount.

βš™οΈ Your expression is executed against test data β€” any correct solution passes. +10 XP

Related labs