All you would have to do is validate a decimal point with INSTR and allow 8 in that case.
I don't understand your aversion to the IDE. I do use notepad sometimes. especially with stuff off the forums. But when you test run a program, you end up in the IDE anyhow and you could have noticed the # on the end of the number then. The IDE can be a pain sometimes, but it also can help with silly mistakes and typo's too.