What's the problem then?
>I don't under what you mean by output patrameters, But if run the function with the following statment i get a result.
>
>declare @result decimal (10,4)
>SET @result = dbo.qohpiecesp(3.05,3.10,12)
>print @result
>
>or
>
>select dbo.qohpiecesp(3.05,3.10,12)
--sb--