Kotlin Discussions
How do you round a number to N decimal places
Support
fvasco
September 16, 2019, 8:01am
6
Please consider to import
round(Double)
from
kotlin.math.round
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Format a double to fixed decimal length
Support
7
26819
May 25, 2024
Convert double to string to double
Support
5
14377
August 11, 2019
Print floats with certain amount of decimal numbers
Support
5
59037
December 7, 2023
Round() produced weird result
Support
4
464
January 13, 2024
Kotlin compiler apparently losing Double value precision
4
4715
July 31, 2024