Numeric format rounds to two decimal irrespective of the format

2 posts, 0 answers
  1. Hariharan
    Hariharan avatar
    2 posts
    Member since:
    Jul 2012

    Posted 22 Jan 2015 Link to this post

    Hi,
      I am using the latest version of the Kendo library.
    I am using following code to convert a textbox to numeric box,

    $("#initial").kendoNumericTextBox({
        format: "{0:n5}",
        decimal: 5,
        spinners: false
    });

    When i enter 1.23 then output format to 1.23000
    But when i enter 1.23456 then output format to 1.23000 instead of 1.23456

    Can you please let me know whether is it bug in numeric box or something wrong in the code?
  2. Hariharan
    Hariharan avatar
    2 posts
    Member since:
    Jul 2012

    Posted 22 Jan 2015 in reply to Hariharan Link to this post

    Please ignore this post. As i found the issue is in my code. decimals is the option. But i used decimal.

    -Hari
  3. Kendo UI is VS 2017 Ready
Back to Top