Hi James. By using a c language possibly ? :) ( which is tolerating assembler inserts of course :)) WBR Dmitry. James Newtons Massmind wrote: > > Not the PIC. The Assembler. The assembler only supports integer math. It > happens to be 32 bit. > > The problem is that I have to work with a fractional value. For example .360 > and it is represented as a fraction of 256. e.g. .360 = 92/256 so the value > I have is 92 which means .36 > > I need to calculate e^(-x) > > Even if I had a power function (and I don't) it goes wrong at the point that > I put in 92/256. At that point the assembler returns a value of 0. In > integer math, 92/256 is zero. > > So how do you calculate e^(-x) in integer math? > > --- > James. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist