Correction string to numerical value casting

Fixed an issue caused if a whole number was passed as a float to
emonhub,