Is this the right way to convert float to string i...
# announcements
a
Is this the right way to convert float to string in kotlin?
Copy code
8938.3f.toString()
c
for basic use that will do the job
could also do something like this, if you only wanted to display a limited number of decimals or apply a other type of formatting.
Copy code
"%.2f".format(8938.598f)
a
Nice thanks @Chris Cunningham