title: Truncate but NOT Round in R
body: <p>Really basic, but Googling didn't yield an answer. Is there a way to <em>truncate</em> a numeric value without <em>rounding</em> it? </p>
  
  <p>For example:</p>
  
  <pre><code>vars &lt;- c(23.4567, 45.6795, 34.5670)
  </code></pre>
  
  <p>I want the output to simply lob off the last two significant figures, but not round the output. What I want is:</p>
  
  <pre><code>vars &lt;- c(23.45, 45.67, 34.56)
  </code></pre>
  
  <p>But the most common ways of doing this end up rounding (round, of course, but also <em>signif</em>:</p>
  
  <pre><code>round(vars, 2)
  </code></pre>
  
  <blockquote>
    <p>[1] 23.46 45.68 34.57</p>
  </blockquote>
  
  <pre><code>signif(vars, digits=4)
  </code></pre>
  
  <blockquote>
    <p>[1] 23.46 45.68 34.57</p>
  </blockquote>
  
  <p>Please point me in the right direction if this has already been addressed here, but couldn't find it specific to R...</p>