andylamax
12/15/2020, 5:42 AM10_000_000_000.0.toString()
to display as 10000000000.0
insted of 1.0E10
?mzgreen
12/15/2020, 5:50 AMprintln(String.format("%.1f", 10_000_000_000.0))
you can control how many digits it prints after .
by changing the number in %.1f
(%.2f will print 2 decimal places)andylamax
12/15/2020, 5:54 AMString.format
available in stdlib-common
? IDEA can't seem to resolve itnanodeath
12/15/2020, 5:54 AMandylamax
12/15/2020, 5:56 AMnanodeath
12/15/2020, 5:57 AMmzgreen
12/15/2020, 6:09 AMandylamax
12/15/2020, 6:10 AMexpect/actual
here I comemzgreen
12/15/2020, 6:45 AMelizarov
12/15/2020, 7:52 AM10_000_000_000.toString()
or convert your floating-point value to an integer:
10_000_000_000.0.toLong().toString()
andylamax
12/15/2020, 7:53 AMandylamax
12/15/2020, 7:53 AM