NgoHoang Posted October 5, 2019 Report Posted October 5, 2019 Dear all! I have 2 variable Word_1 and Word_2 are usigned type, the formular is: Word_1:=Word_2/10; Please show me how to divide a unsigned WORD? I try some cases but GX_Work2 show ERROR. Thanks and best regard!
panic mode Posted October 5, 2019 Report Posted October 5, 2019 what do you mean by "10"? is that decimal, hexadecimal or binary value? if binary just shift right one place. did you check instruction set for your processor?
Bryll Posted October 8, 2019 Report Posted October 8, 2019 "Word_1 := Word_2 / 16#0A;" works fine for me when deviding Word_2 by 10 (16#0A)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now