Question : kotlin power
Answered by : hilarious-hornet-4vgvizpqlbv2
// Use Double type
Math.pow(5.0, 2.0) // = 25.0
// Or
Math.pow(5.toDouble(), 2.toDouble()) // = 25.0
Source : | Last Update : Tue, 31 Aug 21
Question : exponential in kotlin
Answered by : stockholm
Double.pow(x: Double) => 10.0.pow(14) it means 10^14
Source : | Last Update : Wed, 06 Jan 21