Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Round down

Yes i have checked the forums. yes I did search But there is apparently more than floor() because I've tried floor() with various iterations of the formulae inside and it doesn't work. &{template:default} {{name= Stellar Rush}} {{Damage= floor([[2d6/2]])}}
1661853971

Edited 1661854102
Gauss
Forum Champion
You need to include the floor in inline brackets like this: [[floor(2d6/2)]] That gives you: &{template:default} {{name= Stellar Rush}} {{Damage= [[floor(2d6/2)]]}} Note: for the template above I don't think you need to include the inline brackets inside the parenthesis. In my testing it works without them. 
1661865022

Edited 1661865059
Thank you. I don't know why people think the very specific grammar and order of operations of programming are obvious from very general examples.