Thread: Avisynth+
View Single Post
Old 7th July 2016, 11:44   #2034  |  Link
ultim
AVS+ Dev
 
ultim's Avatar
 
Join Date: Aug 2013
Posts: 359
Quote:
Originally Posted by shekh View Post
This is not exact

65404*255/65535 = 254.49 -> rounds to 254

65404>>8 = 255
"because if your input is not a power of 2, your result will be like an integer-truncated division by 256" ... and not by 257, which is why it is nonsense what I wrote here. You are right, sorry, I don't know what I was thinking.
__________________
AviSynth+
ultim is offline