Could someone help me what is happening here? Why java compiler returns 869 from the below example?
package week1;
public class PercentagePrinter {
    public static void main(String[] args){
        double probability = 8.70;
        int percentage = (int)(100 * probability);
        System.out.println(percentage);
    }
}
 
     
    