Answers for "how to extract decimal vqalue from float in android studio"

0

how to extract decimal vqalue from float in android studio

// in java you can do this i did this in android studio


log.i("Tag","decimal value is " + decimal(6.25))

static double decimal(double d){
		int dd = (int)d;
		d -=dd;
		return d;
}
Posted by: Guest on February-24-2021

Code answers related to "how to extract decimal vqalue from float in android studio"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language