Make.com LabBeginner
Round a Number with round() in Make.com
Average review ratings come in with decimals. Your website widget only displays whole stars.
Live Execution Simulator
Idle
π₯
Incoming Data
βοΈ
Make.com Node
π―
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.
Incoming Payload / Data:
{
"rating": 4.6
}
Press Enter or click Check Answer. +10 XP
β Solution & explanation
round(rating)
Output: 5
round(number) rounds to the nearest integer: .5 and above rounds up, below .5 rounds down.π‘ Pro tip: Need decimals in the output? Use formatNumber() to control decimal places.