user85033: I have noticed that the parseFloat() function returns decimal numbers, but only up to 2 decimal places. Would it be possible for it to return the numbers with more decimal places? In case we need more precision

user7508: 
the parseFloat() function returns decimal numbers

No, it doesn't. It returns a binary (not decimal) floating point
number.

only up to 2 decimal places

The number returned by parseFloat() has 24 significant digits.
Binary digits, that is, also called “bits”. This is roughly equivalent
to 7 decimal digits.
That being said, beware of Serial.print(). This function converts
binary floating point numbers to decimal, and defaults to showing only
two digits after the radix point. You can ask for more:
Serial.println(x, 6);  // display x with 6 digits after the radix point.

If you want to gain some basic understanding of how floating point
numbers work, I recommend reading The Floating-Point Guide - What Every
Programmer Should Know About Floating-Point Arithmetic.

85033: <p>I have noticed that the parseFloat() function returns decimal numbers, but only up to 2 decimal places. Would it be possible for it to return the numbers with more decimal places? In case we need more precision</p>
 7508: <blockquote>
<p>the <code>parseFloat()</code> function returns decimal numbers</p>
</blockquote>
<p>No, it doesn't. It returns a <strong>binary</strong> (not decimal) floating point
number.</p>
<blockquote>
<p>only up to 2 decimal places</p>
</blockquote>
<p>The number returned by <code>parseFloat()</code> has 24 significant digits.
Binary digits, that is, also called “bits”. This is roughly equivalent
to 7 decimal digits.</p>
<p>That being said, beware of <code>Serial.print()</code>. This function converts
binary floating point numbers to decimal, and defaults to showing only
two digits after the radix point. You can ask for more:</p>
<pre class="lang-cpp prettyprint-override"><code>Serial.println(x, 6);  // display x with 6 digits after the radix point.
</code></pre>
<p>If you want to gain some basic understanding of how floating point
numbers work, I recommend reading <a href="https://floating-point-gui.de/" rel="nofollow noreferrer">The Floating-Point Guide - What Every
Programmer Should Know About Floating-Point Arithmetic</a>.</p>
