Rounding down in a function node

Hello all!
I am using a function node for math equations, and need to round a number down to the nearest integer. EX msg.payload=23.5, needs to be rounded down to 23. The normal JSON argument for this is $floor(), however this does not work in the function node.
Any Ideas?

Math.floor(23.5)
https://www.w3schools.com/js/js_math.asp

1 Like

Rock on! Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.