> I think rejection is the only "fair" way to do this, > unless you want to do a division/scaling of 1024 -> 1000. > The smartest solution would be to use 1024 element table, > but maybe that is not possible? "Ordinary" people aren't wired up like us. Convincing the user to set a table size of 25,088 instead of 25,000 because it's mo' easy for me to count to 6200h rather than 61ABh would go down like a cup of cold sick. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.