Bug 1105319 - accept non-integer number, up to 2 decimal places

https://bugzilla.mozilla.org/show_bug.cgi?id=1105319