Why would I get the runtime error "Mathematic error" in this function:
Public Function Distance(x1 As Single, y1 As Single, x2 As Single, y2 As Single) As Single Return Abs(Sqr((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1))) End The values of the variables are: ?x2 & " " & x1 & " " & x2 & " " & x1 & " " & y2 & " " & y1 & " " & y2 & " " & y1 174.248779296875 2.40799128109576E-41 174.248779296875 2.40799128109576E-41 146.759170532227 7.19552647834628E+27 146.759170532227 7.19552647834628E+27 Using GAMBAS 3, revision unknown. I'm recompiling now to see if it makes a difference, but please let me know what this error means and what could cause it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: [email protected] phone: (770) 853-6271 ------------------------------------------------------------------------------ RSA(R) Conference 2012 Mar 27 - Feb 2 Save $400 by Jan. 27 Register now! http://p.sf.net/sfu/rsa-sfdev2dev2 _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
