Added some float tests at the end.
Refactored readNum and added readE