Just creating a thread in the forum for the extension I added, DecimalValidator
It ensures data will not get lost when using DECIMAL(m,n) columns in MySQL, supports optional sign (+ or -) and ignores leading or trailing zeroes.
For example if you have a DECIMAL(3,2) the largest you can input is 9.99, entering 10.0 will not work. This extension verifies you will not exceed the limits for the data type.
It doesn’t support scientific/“e” notation, like: -5e-1
Written against Yii 1.1.14, tested in 1.1.14 and 1.1.15