Another try. Maybe you loose precision in intermediate calculations. Try use everywhere Double data type (or Decimal, if your calculations allow this) instead of Currency or Single.
Plamen Ivanov MCSD .NET Early Achiever and MCAD .NET Charter Member (VB .NET/SQL Server 2000) MCSD (VB 6.0/SQL Server 2000) br> VB (.NET) - what other language do you need in the whole Universe?...