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

9th Mar 2017, 11:49 AM
bogi wogi
bogi wogi - avatar
1 Réponse
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
10th Mar 2017, 7:39 AM
Vishal Prajapati