title: Convert float to string in R without losing precision
body: <p>I need to convert a dataframe of floats with 2-decimal point precision to strings. However, as.character drops zeros in the decimal part:</p>
  
  <pre><code>&gt; as.character(1.00)
  [1] "1"
  &gt; as.character(1.10)
  [1] "1.1"
  </code></pre>
  
  <p>I want these numbers to stay in the original format, i.e.:</p>
  
  <pre><code>&gt; paste0(1, ".00")
  [1] "1.00"
  &gt; paste0(1, ".10")
  [1] "1.10".
  </code></pre>
  
  <p>Currently I plan to run for loop, checking string length and applying paste0() across my dataframe, but it seems really stupid to me. Is there simple way to do it?</p>