i encountered the same issue, and Google brought me here. after a few attempts, i discovered this works.
Use format = '0.'