hi i'm a novice in java and i want to know how can i accurately perform arithmetic operation when i'm using a double variable? becase when i assign a value for example of 100.3 it formats to
100.30000151... somthing, how can accurately use it? thanks! need help pls.
here is my code;
String mysam;
double mydouble;
mysam = CalcNumber.getText()
mydouble = Float.parseFloat(mysam);
System.out.println(mydouble);
100.30000151... somthing, how can accurately use it? thanks! need help pls.
here is my code;
String mysam;
double mydouble;
mysam = CalcNumber.getText()
mydouble = Float.parseFloat(mysam);
System.out.println(mydouble);