>1.0 is 0x8000, 0.5 is 0x4000, 0.0 is 0x0000 and the values from 0x8001 to >0xFFFF are not used. Is that true ?
You can convert from/to double by just applying: double = fixed / 32768 fixed = 32768 * double With proper rounding. So, 1.0 got 0x8000, 0.5 got 0x4000, 0 got 0x0000. Values from 0x8001 to 0xFFFF *are* used and represents 1.000030518 to 1.999969428 Regards, Marti. ----- Original Message ----- From: "Nicola Marinelli" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, April 13, 2004 9:16 AM Subject: Re: [Lcms-user] Very simple question > TYPE_XYZ_16 is in 1.15 fixed point. Probably it would be > easier to you to use TYPE_XYZ_Dbl, which returns 3 doubles. > Anyway XYZ is always positive. So ... 1.0 is 0x8000, 0.5 is 0x4000, 0.0 is 0x0000 and the values from 0x8001 to 0xFFFF are not used. Is that true ? Bye, Nicola. ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Lcms-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/lcms-user ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Lcms-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/lcms-user
