Mod Operator

λ‚˜λˆ—μ…ˆμ˜ μ •μˆ˜ λ‚˜λ¨Έμ§€λ₯Ό κ΅¬ν•©λ‹ˆλ‹€.

ꡬ문:


Result = Expression1 MOD Expression2

λ°˜ν™˜ κ°’:

Integer

맀개 λ³€μˆ˜:

Result: MOD μ—°μ‚°μ˜ κ²°κ³Όλ₯Ό ν¬ν•¨ν•˜λŠ” μž„μ˜μ˜ 숫자 λ³€μˆ˜μž…λ‹ˆλ‹€.

Expression1, Expression2: λ‚˜λˆ„λ €λŠ” μž„μ˜μ˜ 숫자 μ‹μž…λ‹ˆλ‹€.

예:


Sub ExampleMod
    print 10 mod 2.5 REM returns 0
    print 10 / 2.5 REM returns 4
    print 10 mod 5 REM returns 0
    print 10 / 5 REM returns 2
    print 5 mod 10 REM returns 5
    print 5 / 10 REM returns 0.5
End Sub

Please support us!