Share
Sign In
📄

부동 소수점 문제 - toFixed()*100

console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기
console.log((1808/6153) ,'|||',(1808/6153).toFixed(2),'|||',(1808/6153).toFixed(2)*100 ,"||",Math.round((1808/6153)*100)) console.log((1808/6153) ,'|||',parseFloat((1808/6153).toFixed(2)),'|||',parseFloat((1808/6153).toFixed(2))*100 ,"||",Math.round((1808/6153)*100))
JavaScript 돌아가기
메인으로 돌아가기