Fix bug where multiple leading 0s could be added (issue #3)

- added new function to validate a number (eg. -42.63)