js & parseFloat & toFixed
https://repl.it/languages/javascript
https://repl.it/repls/MintyBaggyPiracy
let x = parseFloat( 0.5714285714285714).toFixed(3);
let y = parseFloat( 1).toFixed(3);
let z = parseFloat( 0).toFixed(3);
console.log(x);
console.log(y);
console.log(z);