Question on VB MOD function Follow
I am trying to manipulate the weight from a scale. The MOD function does not seem to work. To troubleshoot I created a very simple script:
TestNumber = 123.456
TestInt = int(TestNumber)
msgbox TestInt 'Result 123
TestMod = TestNumber Mod 1
msgbox TestMod 'Result 0 Expected 456
Am I using the MOD function incorrectly?
Please sign in to leave a comment.