Question

[python] μ†Œμˆ˜μ  자릿수 μ§€μ • (round)

Shinjio 2023. 8. 22. 08:23
λ°˜μ‘ν˜•

round() ν•¨μˆ˜ μ‚¬μš©

round(number, 자릿수)

 

def solution(num1, num2):
    answer = round(num1 / num2 * 1000, 0)
    
    return answer

 

 

 

λ°˜μ‘ν˜•