View Single Post
Old 20 June 2019, 00:16   #6
Registered User

Join Date: Oct 2017
Location: Sunderland, England
Posts: 1,515
Originally Posted by DanScott View Post
That's a very rough example, as you would lose any of the fractional part when you shift it right and store it back :P
Yeah, I did say rough example. It was just to try and simplify the logic for the OP. PHX's example is much more efficient but might not be obvious as to what's going on for some.
mcgeezer is online now  
Page generated in 0.04207 seconds with 11 queries