๊ด€๋ฆฌ ๋ฉ”๋‰ด

JiYoung Dev ๐Ÿ–ฅ

[python] ์†Œ์ˆ˜์  ์ž๋ฆฟ์ˆ˜ ์ง€์ • (round) ๋ณธ๋ฌธ

Question

[python] ์†Œ์ˆ˜์  ์ž๋ฆฟ์ˆ˜ ์ง€์ • (round)

Shinjio 2023. 8. 22. 08:23

round() ํ•จ์ˆ˜ ์‚ฌ์šฉ

round(number, ์ž๋ฆฟ์ˆ˜)

 

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