I am making a request to my local server and getting the following numbers in my response:
<PercentSm>2.40</PercentSm>
<FlatSm>0.00</FlatSm>
<MaxSm>99999999.00</MaxSm>
<FlatLgs>0.20</FlatLgs>
when i save them as Double or Float android rounds them down to one decimal place and the MaxSm field is diplayed as 9.9999999E7.
I want to be able to store them with the exact same value and decimal point like i get them. I tries using DecimalFormat but it only supports API 24 and higher. Is there any other way of doing this that will support older apis as well? for example API 19 and up?