Thank you for your quick help on this
Ok I did as you suggested
I made a new file, and slowly added until I had a problem. I'm not sure if this is the problem with my "write" but I wouldn't doubt it, due to some sort of overflow.
here I am trying to get a percentage of a word sized integer
percent=35
example: A=65535 * .35 or A=(65535*100) /35
'-----------
A = TOTAL * 100 'A is temporary storage of computation
A = DIV32 PERCENT 'using DIV32... B can be any integer up to 65534
'-----------
if total=100 wouldn't A=35 ???
I'm not familiar with DIV32 at all, I read up on it and understand somewhat how it works, becuase PBP can't deal with numbers larger than a "word" it uses this as a temperary variable so that people like me can do this type of math, right ?




Bookmarks