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
26997
May 25, 2024
Convert double to string to double
Support
5
14390
August 11, 2019
Print floats with certain amount of decimal numbers
Support
5
59124
December 7, 2023
Round() produced weird result
Support
4
466
January 13, 2024
Kotlin compiler apparently losing Double value precision
4
4723
July 31, 2024