강의

멘토링

커뮤니티

Inflearn Community Q&A

jintae20021793's profile image
jintae20021793

asked

Yun Jae-seong's Beginner Python

Lesson 9 Number

반올림에 대해

Written on

·

283

0

a3 = round(55.55 ,1);

print(a3)

를 출력했을때, 55.5 라는게 나오던데 소주점 둘째자리에서 반올림을 하게되면 55.6 아닌가요? 왜 55.5가 나오는지 궁금합니다.

pythonbigdata

Answer 1

0

softcampus님의 프로필 이미지
softcampus
Instructor

파이썬 쪽에서 round를 만들때 5까지 버림으로 처리합니다.

jintae20021793's profile image
jintae20021793

asked

Ask a question