BASE

Converts a positive integer to a specified base into a text from the numbering system. The digits 0-9 and the letters A-Z are used.

๊ตฌ๋ฌธ

BASE(Number; Radix [; MinimumLength])

Number๋Š” ๋ณ€ํ™˜ํ•  ์–‘์˜ ์ •์ˆ˜์ž…๋‹ˆ๋‹ค.

Radix indicates the base of the numeral system. It may be any positive integer between 2 and 36.

์ตœ์†Œ๊ธธ์ด๋Š” ์ƒ์„ฑํ•  ์ˆ˜ ์žˆ๋Š” ๋ฌธ์ž์˜ ์ตœ์†Œ ๊ธธ์ด๋ฅผ ๊ฒฐ์ •ํ•ฉ๋‹ˆ๋‹ค. ๋งŒ์•ฝ ํ…์ŠคํŠธ๊ฐ€ ์ง€์ •๋œ ์ตœ์†Œ ๊ธธ์ด๋ณด๋‹ค ์งง์œผ๋ฉด ๋ฌธ์ž์—ด์˜ ์™ผ์ชฝ์— 0์ด ์ถ”๊ฐ€๋ฉ๋‹ˆ๋‹ค.(์„ ํƒ ์‚ฌํ•ญ)

์˜ˆ์ œ

=BASE(17;10;4)์€ 10์ง„์ˆ˜ 0017์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

=BASE(17;2)๋Š” ์ด์ง„์ˆ˜ 10001์„ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

=BASE(255;16;4)๋Š” 00FF ์„ 16์ง„์ˆ˜๋กœ ๋ฐ˜ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

Please support us!