Convert float to string in R without losing precision

前端 未结 2 1733
囚心锁ツ
囚心锁ツ 2021-01-20 23:31

I need to convert a dataframe of floats with 2-decimal point precision to strings. However, as.character drops zeros in the decimal part:

> as.character(1.00)         


        
2条回答
提交回复
热议问题