This is a migrated thread and some comments may be shown as answers.

(Kendo UI) kendo.toString(123.123, "N3") return the incorrect value.

2 Answers 143 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
Khanh
Top achievements
Rank 1
Khanh asked on 06 Jul 2018, 08:12 AM

Dear admins,

I'm debugging with kendo UI Web and I face an issue, could you please help me answer the reasons.

Languageespañol

Case 1: kendo.toString(1.1, "N1"); --> Result: 1.1

Case 2: kendo.toString(12.12, "N2"); --> Result: 12.12

Case 3: kendo.toString(123.123, "N3"); --> Result:  ,123.123     --> I don't know why the result is ",123.123".

Case 4: kendo.toString(1234.1234, "N4"); --> Result: 1234.1234

 

Thanks.

2 Answers, 1 is accepted

Sort by
0
Khanh
Top achievements
Rank 1
answered on 06 Jul 2018, 08:17 AM

I want to update some places.

Language: español
Case 1: kendo.toString(1.1, "N1"); --> Result: 1.1
Case 2: kendo.toString(12.12, "N2"); --> Result: 12.12
Case 3: kendo.toString(123.123, "N3"); --> Result:  ,123.123     --> I don't know why the result is ",123.123", instead of "123.123".
Case 4: kendo.toString(1234.1234, "N4"); --> Result: 1,234.1234

0
Viktor Tachev
Telerik team
answered on 09 Jul 2018, 12:37 PM
Hi Khanh,

I tried to replicate the behavior with the current release of the components. Would you update Kendo to the latest version and let me know how the behavior changes? The most recent version is 2018.2.620.

For reference I prepared a dojo sample where I tested the behavior. Please take a look and let me know if I am missing something.



Regards,
Viktor Tachev
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
NumericTextBox
Asked by
Khanh
Top achievements
Rank 1
Answers by
Khanh
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or