In this code, I want to check if kcFormula is a float or not.
function kToc() {
let userInput2 = parseInt(document.getElementById('in2').value)
let kcFormula = userInput2 - 273.15
res2.innerHTML = kcFormula
}
If the result is float, I will make some conditions afterwards.