Kotlin Discussions
How do you round a number to N decimal places
Support
stevehb
November 23, 2021, 8:21am
19
This is a cursed JavaScript approach. Please just use the one from
@fvasco
show post in topic
Related topics
Topic
Replies
Views
Activity
Format a double to fixed decimal length
Support
7
27528
May 25, 2024
Convert double to string to double
Support
5
14428
August 11, 2019
Print floats with certain amount of decimal numbers
Support
5
59408
December 7, 2023
Round() produced weird result
Support
4
487
January 13, 2024
Kotlin compiler apparently losing Double value precision
4
4762
July 31, 2024