Join Slack
Powered by
Why is kotlin showing me: 1.49262774E8 and not 149...
# getting-started
j
Jan
04/11/2022, 7:15 PM
Why is kotlin showing me: 1.49262774E8 and not 149,262,774?
Jan
04/11/2022, 7:17 PM
nvm I can just convert it to a long
r
Ruckus
04/11/2022, 7:57 PM
If you want numbers converted to strings in a certain way, you need to format them. Here's an example using `DecimalFormat`:
https://stackoverflow.com/a/53849093/2094298
Open in Slack
Previous
Next