ArithmeticException: / by zero

Hello. I’ve been working on a new project, which has been going splendidly for me as I thought it would be quite a challenge, but it has been a breeze so far. I was then adding a new element and the first of this element worked fine. The second one, however, returned the error shown in the title.
I know I didn’t divide by zero, though. So what’s going on?

   if(battletriangle2x<width/(2/3)) {
1 Like

Try (2.0/3) instead of (2/3)

2 Likes

Thanks. That worked.