Answers for "power function kotlin"

3

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

Browse Popular Code Answers by Language