<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9477742/36406284-b8e3922c-15c3-11e8-952d-5a67a5c08146.PNG"><img width="337" alt="py1" src="https://user-images.githubusercontent.com/9477742/36406284-b8e3922c-15c3-11e8-952d-5a67a5c08146.PNG" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/9477742/36406286-bb97ce3e-15c3-11e8-98b0-cddfd0bb889e.PNG"><img width="248" alt="py3" src="https://user-images.githubusercontent.com/9477742/36406286-bb97ce3e-15c3-11e8-98b0-cddfd0bb889e.PNG" style="max-width: 100%;"></a></p>
<p dir="auto">When creating an array from 0.2 to 0.8, the maximum value in the array is 0.8, but when I run max of the whole array,  I found the maximum value different from 0.8. It has digits in the 15th and 16th decimal.<br>
When the same is done with 0.7 as the ending value, the maximum of the array is 0.60000000009.. and the value of 0.7 is not included in the array.</p>
<p dir="auto">PFA the screenshots.</p>
<p dir="auto">If I do <code class="notranslate">np.arange(3.18,3.21,0.01)</code>, it gives <code class="notranslate">array([ 3.18,  3.19,  3.2 ])</code>. However, if I do <code class="notranslate">np.arange(3.18,3.22,0.01)</code>, it gives <code class="notranslate">array([ 3.18,  3.19,  3.2 ,  3.21,  3.22])</code>. This seems inconsistent. Why is this so? I am using numpy 1.11.2 on Python 2.7.13.</p>