decode (valid) doubles properly