Cast to float before string to ensure it's in double form, fixes #1200