In an video, I saw the syntax
val one = 1.bd
but it doesn’t work for me. So I defined
fun Int.bd() : BigDecimal? = BigDecimal(this)
and now I can write
val one = 1.bd()
Nice, but according to what I read, parentheses are optional, but it doesn’t work. Are parentheses mandatory or what’s gong on here?