BigDecimal call requires API level 24 Android
<p>I've been facing some issues with my calculator where I'm using double values. However when I use 2.3 (Who's binary representation is recurring ) * 3 , instead of 6.9 it would give me 6.8999999999. </p>

<p>So i tried to find out how to solve this and i came across big decimal numbers. However whenever i try to call</p>

<p>new BigDecimal(leftValue); </p>

<p>it always throws an error saying Call requires API level 24. But i don't see anywhere even in docs that min. API level is 24.</p>

<p>Can any one help me with this issue?</p>