My goal is to convert an RGB pixel into CIELab color space for some special calculations only possible in CIELab. For this, I must convert RGB to XYZ first, which is the rea
*inR/255 is an integer division. 1/255 is zero. Write *inR/255.0 instead.