Mod Operator

αžαŸ’αžšαž‘αž”αŸ‹β€‹αžŸαŸ†αžŽαž›αŸ‹β€‹αž“αŸƒβ€‹αž”αŸ’αžšαž˜αžΆαžŽβ€‹αžœαž·αž’αžΈβ€‹αž…αŸ‚αž€Β αŸ”

αžœαžΆαž€αŸ’αž™β€‹αžŸαž˜αŸ’αž–αž“αŸ’αž’ αŸ–


Result = Expression1 MOD Expression2

αžαž˜αŸ’αž›αŸƒβ€‹αžαŸ’αžšαž‘αž”αŸ‹ αŸ–

αž…αŸ†αž“αž½αž“β€‹αž‚αžαŸ‹

αž”αŸ‰αžΆαžšαŸ‰αžΆαž˜αŸ‰αŸ‚αžαŸ’αžš αŸ–

αž›αž‘αŸ’αž’αž•αž›β€‹ αŸ– αž’αžαŸαžšβ€‹αž›αŸαžβ€‹αž˜αž½αž™β€‹αž…αŸ†αž“αž½αž“β€‹ αžŠαŸ‚αž›β€‹αž˜αžΆαž“β€‹αž›αž‘αŸ’αž’αž•αž›β€‹αž“αŸƒβ€‹αž”αŸ’αžšαž˜αžΆαžŽβ€‹αžœαž·αž’αžΈ MODΒ αŸ”

αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αžΈβ€‹1, αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž‘αžΈβ€‹2 αŸ– αž€αž“αŸ’αžŸαŸ„αž˜β€‹αž›αŸαžβ€‹β€‹αž˜αž½αž™β€‹αž…αŸ†αž“αž½αž“β€‹ αžŠαŸ‚αž›β€‹αž’αŸ’αž“αž€β€‹αž…αž„αŸ‹β€‹αž…αŸ‚αž€Β αŸ”

αž§αž‘αžΆαž αžšαžŽαŸ αŸ–


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!