> How would you calculate e^(-at) in 32 bit integer math? > > Why does it need to be integer math? From your previous post > I got the impression this calculation was going to be done at > assembly time. The assembler I'm using only supports integer math. No fractions. No floating point. Just integers. So if you put in .36 it becomes 0. 92/256 = 0. Integer math. How do you calculate e^(-x) where x is between 1/256 and 192/256 using only 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