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

Star Wars D20 Revised macro error

So I have noticed something in the attack macro for weapons on the sheet, and it gave me a huge WTF.  One of my players had this as their roll.6+6+floor(10/2-5)  Now that is a VERY odd attack roll and we cannot figure it out, can anyone please explain what is going on and what happened?  I need to fix it, but I don't know if it is a macro malfunction or just coding error on sheet.  It rolled his crit as a 32 not 26 which it should have.
Nevermind, fixed it.  Player put the wrong number in the wrong spot.  BUT what does +floor(10/2-5) mean?
it means floor(x) &nbsp;rounds x towards negative infinity. Found here&nbsp; <a href="https://roll20.zendesk.com/hc/en-us/articles/360037773133-Dice-Reference#DiceReference-MathOperatorsandFunctions" rel="nofollow">https://roll20.zendesk.com/hc/en-us/articles/360037773133-Dice-Reference#DiceReference-MathOperatorsandFunctions</a> &nbsp;