I working on a Hyperskill project in Kotlin to make a number converter which also converts fractions. Now I stuck with fraction converting.
else if (userInput.contains(".")) {
var firstPart = userInput.substringBefore(".").toBigInteger()
var secondPart = userInput.substringAfter(".").toString()
How can I convert the secondPart to its proper form? For example userInput is 15.375 and secondPart should be 0.375 Thanks in advance!