I needed a quick way to get the number of decimal places on a Double value. I am displaying the values differently if they have more than 2 decimal values. Here is a quick helper that I threw together.