const probability = 0.7; const percentage = Math.round( ( probability * 100) ); console.log( percentage + "%" ); //=> 70%