On Wed, 30 Nov 2005, Dmitriy Kiryashov wrote: >> xx.yy = 0XXYY/100 -> you store 0XXYY 2 >> xxx.yy = XXXYY/100 -> you store XXXYY 2 >> xx = 0XX00/100 -> you store 0XX00 0 >> x.y = 00XY0/100 -> you store 00XY0 1 > > Isn't that supposed to be ( last two ) > > xx = 000XX/100 -> you store 000XX 0 > x.y = 000XY/100 -> you store 000XY 1 No, the second number stores the number of significant fractional digits for conversion and comparison, it is not an exponent of a normalized mantissa. I meant to write it the way I wrote it. Jinx said that he needs to cover numbers to 10^5. I do not address this here but one could store another number for exponent *without* implying switching to fp. Peter -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist