This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Is there any method that will return the number of digits after decimal in double number. eg, I want to write a method that takes "double number " as input.. I want to know if that number/parameter has any decimal numbers.. ?and how many ?
if parameter is '3' , method should return '0' .. if parameter is 3.23, it should return '2'..