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'..