Get number of decimal places

A util methods that allows the user to get the number of decimal places in a number, which is useful in multiple formatters