+ 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?

27th Jul 2021, 5:31 PM
Dev_bian
Dev_bian - avatar
2 Antworten
27th Jul 2021, 5:35 PM
minirkk
minirkk - avatar
+ 1
Thank you very much!!
27th Jul 2021, 6:09 PM
Dev_bian
Dev_bian - avatar