Hi oompa, Math.Abs only works on numeric variables (such as Single, Double, SByte, Integer etc.)
A narrowing conversion is a conversion from one data type into another without loss of data. Because there's no loss, VB will usually not think twice about doing it for you. Are you certain that everything between the brackets for Math.Abs() is indeed a numeric value? You can test it like this: Dim val As Double = pieValues(j + i * 6) - (2.0 * Math.Pi) Reflect(val) If (Math.Abs(val) < 1e-32) Then -- David Rutten [email protected] Robert McNeel & Associates On Mar 30, 12:58 am, oompa_l <[email protected]> wrote: > thanks david. I did get a runtime error: "Overload resolution failed > because no accessible 'Abs' can be called without a narrowing > conversion" ?? no idea what that means...
