Fix a copy-paste error
Add more test cases
Fix a bug when fractionalPart is the empty string
Merge pull request #9 from danking/master

Fix a copy paste error and an error on numbers of the form "X."