Thanks to visit codestin.com Credit goes to kotlinlang.org
Use toDouble() instead.
s.toDouble()
Thanks for your feedback!