Algorithm/noj.am

[Python] 소수점 n자리까지 표시하기

SweetDev 2021. 1. 2. 01:54


 

print("%s %.1f" % (int(C_sum), GPA))

 

%.1f-> 소숫점 한자리까지 표시