0

Title pretty much sums it up. I'd bet that over half the usage of this method in the wild involves someone casting an int to a decimal or double in order to use it, so why isn't there just an overload that takes an int as the argument?

http://msdn.microsoft.com/en-us/library/system.data.objects.sqlclient.sqlfunctions.stringconvert.aspx

heisenberg
  • 9,665
  • 1
  • 30
  • 38

1 Answers1

3

Because it's directly related to the STR function found here:

http://msdn.microsoft.com/en-us/library/ms189527.aspx

and that function only takes a float, hence the parameters you're seeing.

Joseph
  • 25,330
  • 8
  • 76
  • 125