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 .
×

Chat breaks if you roll a fraction with divide by zero.

Hi, I believe I found a bug that can break the chat log. My group was messing around with "rolling" numbers with fractions (such as /r 1/6) and when someone rolled a fraction that divided by zero (such as /r 1/0) the chat would break on later page loads. No one would be able to post in the chat, and the logs would act unpredictably. We found that a solution to fixing the issue was to have the game owner clear the chat archive.
1592561174
Andreas J.
Forum Champion
Sheet Author
Translator
Division by zero is undefined in mathematics, so it's not surprising you don't get a result. But it's unfortunate that doing so breaks/corrupts the chat archive, even if it isn't legit math. Roll20 could change things so the archive corruption is avoided, in case someone does this by accident(or maliciously wants to corrupt a chat). Maybe looking ups some other mathematical edge-cases  and exceptions could also be looked up at the same time.