• Peter, That is why I told him to convert the values passed to float in my second post on the subject.  However, the values he would get would not match what he got in Excel using LOG in SQL, as LOG in SQL is the natural log while LOG in Excel defaults to LOG base 10 which is LOG10 in SQL.