What is the Kotlin exponent operator

后端 未结 5 663
春和景丽
春和景丽 2021-01-07 17:33

What is the exponent operator in Kotlin. I assumed it would be ** but it seems to throw up an error in my code.

when (pendingOperation) {
    \"         


        
5条回答
  •  悲&欢浪女
    2021-01-07 17:44

    use extension method pow

    inline fun Double.pow(x: Double): Double (source)
    

    for more detail pow

提交回复
热议问题