Double format parse fix from saneman1

Reformated changes from pull #1
https://github.com/saleyn/otp.net/pull/1