0
Hello friends I am working on android app which is based on cricket
I want to count overs such as 1.2 means 1 over and 2 ball. so please suggest me code for this
1 Odpowiedź
0
//Java program
double rawover = 1.2;
int over = Integer.parseInt(rawover); // 1
double rawballs = (rawover - over)*10 // (1.2-1)*10 = 2.0
int balls = Integer.parseInt(raw_balls) // 2