const height = 5642.71;
let heightStr = height.toString()
console.log(heightStr)
console.log(height.toFixed(1))
Click Run to execute JavaScript.
Code runs in an isolated environment.