Hi boys!
I have been wrong to expose the problem!
I would have the necessity to divide the variable "B" for the number 5,58 and subsequently to visualize the result "A" on LCD.
My very problem is the following:
A = B / 5,58
Excuse the error! Everybody can help me??
Not knowing the size of B, I've used DIV32. B can be any integer up to 65534.
A VAR WORD
B VAR WORD
A = B * 100 'A is temporary storage of computation
A = DIV32 558 'using DIV32... B can be any integer up to 65534
A = A / 100 'final result is placed in variable A as an integer... any
'remainder will be discarded.
Hope this helps,
Ross
Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!
I like that! :-)
Tip: use DIG and DEC modifier with LCDOUT.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
You know....
I've refered to the "Manual" several hundred times by now.
Usually, I'm trying to answer a specific question. (not always successfully)
The fact that I keep having to look at it, either means I'm Stupid, or you can't grasp the wealth of knowledge from (a couple hundred views)
Just because you read it, doesn't mean you understand it.
That's what the forum (and us giver's) are here for!
To fill in the gaps.
In other words skimask,
from DT
"Cut the RTFM crap".
DT
Bookmarks