Since there are (as integers) 5(rounding down)-6(rounding up) natural logs of an 8 bit number and 11 for a 16 bit number... Why not just list the 'cut-offs' in a table, find out which slot the number falls in, and TADA! it's the slot number is the natural log. TAS At 04:37 PM 12/9/99 GMT0BST, Andy Farrar wrote: >Hello, >I have a problem with knowing where to start, has anybody got >example code or the method used in taking the natural log of an 8 bit >binary number, and preferably a 16 bit number. >Any help would be most appreciated. >Many thanks >Andrew Farrar > > ----------------------------------------------------------------- Sent from the desk of: Terry Allen Steen, EE engineering@marinapower.com 332 McLaws Circle, Ste 111 757-258-8800 (Voice) Williamsburg, Va 23185 757-258-8805 (FAX) ----------------------------------------------------------------- !I AM A WHALE MAIL USER! If you have a large file to send, goto http://www.whalemail.com send them to: mplengineer Give me your account and I will use it also ----------------------------------------------------------------- Visit our web-site: www.marinapower.com -----------------------------------------------------------------