Menu
Question Index
...

Write a program to get the decimal count of given number.

Input Output
200.234578 6
-12.0214 4
-12.0214 4
10.23 2
-12.78 2
null 0



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;
        }
        

}

Doubts

Problems

Topic: Java Double Class And Java Float Class

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App