Hi, On Wed, 09 Mar 2011 11:58:08 -0500, Andrew Haines wrote: > if Tmp <> Im then > begin > //Tmp := ln(Tmp)*LogBase+Shift; // same as the following asm > proc? > asm > FLD LogBase; > FLD Tmp; > FYL2X; FYL2X calculates the log to the base 2 of tmp, not log to the base e of tmp? Just a guess. Thomas