Here also you could find an example,
Also here you could find something to reason your issue,
Concerning the equation I mentioned above to you, it means simply, By dividing by 255, the 0-255 range can be described with a 0.0-1.0 range where 0.0 means 0 (0x00) and 1.0 means 255