Answers for "kotlin power"

2

kotlin power

// Use Double type
Math.pow(5.0, 2.0) // = 25.0
// Or
Math.pow(5.toDouble(), 2.toDouble()) // = 25.0
Posted by: Guest on August-24-2021
0

exponential in kotlin

Double.pow(x: Double) => 10.0.pow(14) it means 10^14
Posted by: Guest on December-30-2020

Browse Popular Code Answers by Language