title: t-sql udf, get the data type of a parameter
body: <p>is it possible to get a numeric parameter to my udf
  and do stuff according to its type, like:</p>
  
  <p>if type of @p1 is decimal(10,3)
  ...
  else if type of @p1 is decimal(15,3)
  ...
  else if type of @p1 is integer
  ...</p>