Results 1 to 3 of 3

Thread: How to show 2 floating points precision in textfield

  1. #1
    Sencha User
    Join Date
    Jan 2018
    Posts
    10

    Default How to show 2 floating points precision in textfield

    Hello, I have a textfield to show numbers, I need to show the numbers always with a floating point precision of 2 characters, even if the value is an integer. How can i do this??. Thanks in advanced

  2. #2
    Sencha - Forum Administrator
    Join Date
    Sep 2017
    Posts
    1,006

    Default

    Thank you! We are working to get you an answer and will be back with you shortly.

  3. #3
    Sencha Staff
    Join Date
    Sep 2017
    Posts
    126

    Default

    Hi there,

    If you only want to show numbers, use numberfield instead of textfield.


    https://docs.sencha.com/extjs/4.1.3/...m.field.Number


    'decimal precision' of numberfield helps to do that. By default it is 2.

    Regards,
    Pavan,
    Sencha Support.

Similar Threads

  1. Replies: 1
    Last Post: 7 Sep 2018, 1:13 PM
  2. Textfield cursor floating in iOS mobile safari
    By robboerman in forum Sencha Touch 2.x: Bugs
    Replies: 2
    Last Post: 11 Dec 2013, 6:59 AM
  3. Architect + Charts: How to get iteminfo to show information about the data points
    By CRH in forum Sencha Architect 2.x: Help & Discussions
    Replies: 5
    Last Post: 1 Aug 2013, 4:33 AM
  4. Floating Panel does not show?
    By Stju in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 12 Jan 2011, 1:59 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •