Find the approximate value in the vector : <p>I have a number of the vector with the numbers.</p>

<pre><code>test &lt;- 0.495

vector &lt;- c(0.5715122, 2.2860487, 5.1436096, 9.1441949)
</code></pre>

<p>This vector is the need to take an approximate number to the number 0.495.
Help me. </p>
