Juan B
10/14/2020, 10:44 PMJuan B
10/14/2020, 10:54 PMephemient
10/14/2020, 11:11 PMDecimalFormat("#,##0.00").format(decimal)
might do what you want, although note this formatting will always round to a nearest 0.01 even if you have more precisionnanodeath
10/15/2020, 12:14 AMnanodeath
10/15/2020, 12:15 AMephemient
10/15/2020, 12:41 AMBigDecimal(10000.toBigInteger(), 2) == 100.toBigDecimal().setScale(2)
Juan B
10/15/2020, 12:43 AMnanodeath
10/15/2020, 12:46 AMJuan B
10/15/2020, 3:21 PM