+91-85006-22255
Write a program to get the decimal count of given number.
class DecimalCount { public static void main(String s[]) { Double value = 250.342165; int result = getDecimalCount(value); System.out.println("The decimal count of the number "+value+" "+result); } public static int getDecimalCount(Double value) { int result = 0;
return result; } }
Topic: Java Double Class And Java Float Class
Read this topic Take test on this topic
Open In App