I created this simple coin conversion, but for some reason my print output is acting weird, should't it output 12995?
This is my code:
public static void main(String[]args)
{
double x=129.95;
int y= (int)(x*100);
System.out.println(y);
}
Output : 12994