Share feedback, ideas and get community help

Updated 2 weeks ago

Calculate and round numbers

Hello. I'm creating a bot that make a calculation based on the numbers the user type.

I can to the simple math using the block SETVARIABLE using this code: ({{money_spent}}/5.95122/1000)1000;

But I'd like to ROUND this number. I tried "math.round()", but it doesn't work. How can I solve this?
B
1 comment
Have you tried: Math.round(Number({{My variable}}))
Add a reply
Sign up and join the conversation on Discord