jlleitschuh
08/17/2017, 3:04 PMDouble
so you can do this: 0.5.toBigDecimal()
Ruckus
08/17/2017, 3:27 PMorangy
val <http://Double.bd|Double.bd> : BigDecimal get() = BigDecimal(this)
val value = 0.5.bd
elizarov
08/17/2017, 3:51 PMdmitry.petrov
08/17/2017, 8:26 PMfun Double.toBigDecimal()
, because that's a conversion function, just like toMutableList
.Ruckus
08/17/2017, 8:28 PMdmitry.petrov
08/17/2017, 8:31 PM.bd
Ruckus
08/17/2017, 8:34 PM