Skip to content

Commit 3359e8b

Browse files
authored
센티미터 -> 인치 변환 공식 수정
1 parent dbbec5e commit 3359e8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch3/inch_to_cm/src/InchToCm.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default class InchToCm extends Component {
2121
// cm가 변경됐을 때 --- (※3)
2222
cmChanged (e) {
2323
const cmValue = e.value
24-
const inchValue = cmValue * 2.54
24+
const inchValue = cmValue / 2.54
2525
this.setState({
2626
inch: inchValue,
2727
cm: cmValue
@@ -40,4 +40,4 @@ export default class InchToCm extends Component {
4040
</div>
4141
)
4242
}
43-
}
43+
}

0 commit comments

Comments
 (0)