Hi,
The */ operator multiplies the two values you give it and the discards the least significant byte of the result. It's the same thing as first multiplying then dividing by 256. The good thing is that intermeditate result can be large within limits and you won't overflow like you would if you did the same thing "manually".
Put another way, the */ operator multiplies by units of 1/256. So:
100 */ 64 = 25
100 */ 128 = 50
100 */ 256 = 100
100 */ 384 = 150
100 */ 512 = 200
and so on.
Lets say you have a value of 123 and want to multiply it by say 3.477 (the correct answer is 427.67). To find the number to use with the */ operator all you need to do is 3.477*256=890. 123*/890 will return 427.
/Henrik.
Bookmarks