소수점 한자릿수 올림

This commit is contained in:
hyojun.choi 2024-09-19 13:27:16 +09:00
parent 85182725df
commit af3422b663

View File

@ -46,7 +46,7 @@ export const useLine = () => {
const dx = x2 - x1
const dy = y2 - y1
return Number(Math.sqrt(dx * dx + dy * dy).toFixed(0)) * 10
return Number(Math.sqrt(dx * dx + dy * dy).toFixed(1)) * 10
}
return {