found cool function to help with the decimal problem