Convert values to float to avoid scientific notation being inserted into pdf

* this breaks the pdf for chrome and adobe
* remove old code