Data Analysis/Python
[Python] 문자열 자료형 (2) 숫자 반올림
[지현]
2021. 1. 8. 17:56
숫자 반올림
1
2
3
|
a = "%0.4f" %3.141592
print(a)
# 3.1416
|