Correction string to numerical value casting

Fixed an issue caused if a whole number was passed as a float to
emonhub,
Merge pull request #68 from otherWIP/development

Correction string to numerical value casting