When converting the value zero, the result is wrong: it is converted to "" or ".", depending on the precision.The attached patch insures a zero to be added, so this converts to "0" or "0."
Regards,Andreas