On Apr 11, 2007, at 7:41 PM, Chris Little wrote: > > Charles' function is correct. Look carefully at where the > multiplies and the > brackets are. It helps to simplify it. Take the second example. If you > replace AscB(MidB(x, ?)) with X1 through X4 and inject a little > white space > you can see what is happening. > > return ((X1 * 256 + X2) * 256 + X3) * 256 + X4 > > Chris >
This is called Horner's rule and is usually used to evaluate polynomials. Google will provide lots of information. Malcolm _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
