4 Matching Annotations
  1. Jul 2024
    1. When Java sees you doing integer division (or any operation with integers) it assumes you want an integer result so it throws away anything after the decimal point in the answer. This is called truncating division.

      so int/int in this case 2/3 is gon be 0 cuz we see that in mathematics : 2/3 = 0.6 repeated but this is an int value cuz 2 and 3, therefore every number after decimal would be excluded and this process is the blue