Hi, I am trying to make a program where i need to calculate a fraction (3-2)/2 or just 1/2 which is 0,5 ofcourse, however processing says it is 0. I don’t know if it’s a bug or what. I would just like to know how i can fix the problem .
For exampel if i write something like:
float x=1/2 println(x)
it just prints 0