Small modification to how MyInputStream parses floats and doubles that
(according to Google Code AnalytiX) should make the code somewhat more
efficient.