I created the following function to calculate distances between two points:

```
  CREATE FUNCTION [fnCalcDistanceKM](@lat1 FLOAT, @lat2 FLOAT, @lon1 FLOAT,       @lon2 FLOAT)
  RETURNS FLOAT 
  AS
  BEGIN

RETURN ACOS(SIN(PI()*@lat1/180.0)*SIN(PI()*@lat2/180.0)+COS(PI()*@lat1/180.0)*COS(PI()*@lat2/180.0)*COS(PI()*@lon2/180.0-PI()*@lon1/180.0))*6371
END

```

But when I run the following select statement...I get the error:

Incorrect syntax near '13.077085'.

```
  select [fnCalcDistanceKM](13.077085,80.262675,13.065701,80.258916)

```