Or rather, it is, but it has different naming, `Bi...
# announcements
k
Or rather, it is, but it has different naming,
BigDecimal#toInt()
which maps to
intValue()
. Curious how this is done.
d
It's because
BigDecimal
extends
Number
, and
Number
has its functions mapped.
k
Hmmm,
BigDecimal
extends
java.lang.Number
whereas
toInt()
comes from `kotlin.Number`…
k
Uh, thanks! Makes sense now