Apply precision/scale only to the decimal type.

PR for issue #6.