profile
I just a beginner, but not for a long time! ๐Ÿคฉ

(Swift) ์†Œ์ˆ˜์  ๋‹ค๋ฃจ๊ธฐ

ํ•จ์ˆ˜๋ฅผ ๊ตฌ์„ฑํ•˜๋‹ค๋ณด๋ฉด ์†Œ์ˆ˜์  ์ž๋ฆฌ๊นŒ์ง€ ๊ณ„์‚ฐํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค.์•„๋ž˜ ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” Foundation์„ import ํ•ด์ค˜์•ผํ•œ๋‹ค'import Foundation'round()์†Œ์ˆ˜์  ์ดํ•˜๋ฅผ ๋ฐ˜์˜ฌ๋ฆผํ•œ๋‹ค.์›ํ•˜๋Š” ์†Œ์ˆ˜์  ์ž๋ฆฌ๊นŒ์ง€ ๋ฐ˜์˜ฌ๋ฆผํ•ด์„œ ๋‚˜ํƒ€๋‚ด๊ณ  ์‹ถ์„๋•Œceil()์†Œ์ˆ˜์ 

2022๋…„ 5์›” 17์ผ
ยท
0๊ฐœ์˜ ๋Œ“๊ธ€
ยท