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

3 posts, 0 answers
  1. Khanh
    Khanh avatar
    17 posts
    Member since:
    May 2018

    Posted 06 Jul 2018 Link to this post

    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. Khanh
    Khanh avatar
    17 posts
    Member since:
    May 2018

    Posted 06 Jul 2018 Link to this post

    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

  3. Viktor Tachev
    Admin
    Viktor Tachev avatar
    2391 posts

    Posted 09 Jul 2018 Link to this post

    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.
Back to Top