Given
{ "currency" : {
"details" : {
"data" : {
"code" : "INR",
"name" : "Indian Rupee",
"symbol" : "₹"
}
}
},
"amt" : 3.247913577689E10
}
problem: The above json I am getting as a response in my code from that, I am taking out the amt
and then sending back the amt
amount in a file. But the problem is amt
is coming in scientific notation. I have tried code like given below
val paymentAmount = (json \ "total_amount").extractOrElse(0.00).toString
It is not working. I tried f interpolation but for biggest number it is rounding off. How to handle this?