Hi
I am using a 14M2 and need to multiply a Word variable by 105 decimal. I then need the answer in a format i can use for display on an LCD/OLED. this is easy if the variable value is less than 624 decimal, as the maths result is less than the overflow of 65,020. but the word variable can be upto 1023 decimal in value, so obviously it overdflows. I have tried ** but it didnt give what i want.
once the maths is done, i want to be able to convert to Ascii with "bintoasci" and display the full number on screen
example, 105 x 1011 = 106155 which cant be done with word *word maths. What i would like is for a word to hold the MSB of the sum "106" and another Word to store "155" then i can easily put them to ascii and send to screen.
whats the best way for this?
I am using a 14M2 and need to multiply a Word variable by 105 decimal. I then need the answer in a format i can use for display on an LCD/OLED. this is easy if the variable value is less than 624 decimal, as the maths result is less than the overflow of 65,020. but the word variable can be upto 1023 decimal in value, so obviously it overdflows. I have tried ** but it didnt give what i want.
once the maths is done, i want to be able to convert to Ascii with "bintoasci" and display the full number on screen
example, 105 x 1011 = 106155 which cant be done with word *word maths. What i would like is for a word to hold the MSB of the sum "106" and another Word to store "155" then i can easily put them to ascii and send to screen.
whats the best way for this?