Expected result: either "1.67" (as appropriate kiven the current kendo culture) or an error indicating that multiple arguments are required
Actual result: returns 1.67 as a number, not a string
It seems odd to me that the toString() function should ever return something other than a string.
My use-case is that I am trying to format a numeric value in a culture-aware way using kendo.
In many cases, I can do this via kendo.toString, for example:
However, in this case rather than specifying a custom format I wanted to use the "natural" format (as many decimal places as the number has). In C#, for example, you can get this by calling ToString() on a value of type double. I thought that kendo.toString(number) might have the same behavior, and was surprised when it returned a number back. A workaround for my use-case is to do kendo.toString(number, "#.############"), but the current behavior with one argument seems like a bug that might catch others up in the future.