Int Function

์ˆซ์ž์˜ ์ •์ˆ˜ ๋ถ€๋ถ„์„ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

Syntax:

Int (Number)

Return value:

Double

Parameters:

Number: ์ž„์˜์˜ ์œ ํšจํ•œ ์ˆซ์ž ์‹์ž…๋‹ˆ๋‹ค.

Error codes:

5 ์ž˜๋ชป๋œ ํ”„๋กœ์‹œ์ € ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค.

Example:


Sub ExampleInt
    Print Int(3.99) REM ๊ฒฐ๊ณผ ๊ฐ’์œผ๋กœ 3์„ ๋ฐ˜ํ™˜
    Print Int(0) REM ๊ฒฐ๊ณผ ๊ฐ’์œผ๋กœ 0์„ ๋ฐ˜ํ™˜
    Print Int(-3.14159) REM ๊ฒฐ๊ณผ ๊ฐ’์œผ๋กœ -4๋ฅผ ๋ฐ˜ํ™˜
End Sub

Please support us!