+ 1
Round numbers in kotlin
How can i round a number in kotlin to 2 decimals. I.E pi= 3.141592 , how can i round this numer to 3.14?
2 Answers
+ 4
Check the green tick â
answer from this link
https://stackoverflow.com/questions/49011924/round-double-to-1-decimal-place-kotlin-from-0-044999-to-0-1/51689453
+ 1
Thank you very much!!