Okay
  Public Ticket #3225419
Extra Numbers
Closed

Comments

  • Stan Hooker started the conversation

    Hi,

    For some reason this is being added at the end of the numbers - ,00 - and I cannot find out why.  I confirmed that the ,00 is not in the data and is being added.  I tried some settings with no luck.

    Thanks!
    Stan



  • Stan Hooker replied

    Hi,

    I wanted to add a screenshot.

    Thanks,
    Stan

    Attached files:  Screen Shot 2023-02-07 at 1.08.20 PM.png

  • Syed Omar replied

    May be you should try looking into the Settings. It has a number format setting. You can click on the Column setting and under Data, you can set the number of decimal places. Just make it empty or 0. That's probably it. (Just trying to help)

  •  1,850
    Miloš replied

    Hi, Stan 

    Thanks for reaching out to us

    And thank you for trying to help a fellow user, Syed, that is always appreciated.smile.png

    Exactly, the best first step is to check what is the number format coming from your source data,

    and to match this Number Format in the main plugin settings/Number Format.

    See if you change the current Number Format in the plugin - let us know if that solves the issue?

    -

    2. Also, as Syed correctly said, check how many decimals you have set in the main plugin settings,

    as well as in the column settings in the table ( if you leave it to blank, it will pull this default decimal number, and zero decimals is only available for Formula columns) :

    5361617339.png

    -

    8810839259.png

    -

    Let us know if that helps, but we also notice that this is a Manual Table, so it might be another issue.

    3.  By default, all float columns for Manual Tables will initially be created in the database with 4 decimals.

    Our developers are working to improve this behaviour,I can't say an ETA when it will be fixed,

    but you follow our changeLog page if you'd like ( it is also available in the plugin dashboard), where we state any changes/new features/bug fixes during updates;

    and our newsletter, so you're informed about new features, bug fixes, freebies, etc.

    -

    For the time being, we have two possible workaround solutions when we need a different number of decimal places:

    1. If you want to get it working as Float Type, with proper numeric sorting, 

    you can change the column setting directly in your database for the table.

    Here is my example via PhPMyAdmin with screenshots for setting 6 decimal places. 

    ( My apology if you already know how to do this, i will share it just to be safe)

     First, we check what is the SQL table name, in the Editing tab:

    3665573879.png

    -

    Then we find the table in PhPMyAdmin and edit the column(s) we need to have 6 decimals :

    4527166335.png

    -

    Change the Length/Values for the Float Column from initial "16,4"  to the decimal number you need;

    in this example "16,6"  - that will allow you to get 6 decimals without issues. ( But you can change it to any decimal number you need)

    1923860186.png

    -

    Once you go back to the table in our plugin, if you set it like that,

    you will be able to have 6 decimals in this column for new rows.

    7976983249.png

    -

    2.  

    Or you can set up a new column as String type, it will also work that way to display the value,

     but then you won't get proper numeric sorting.

    Let me know if that helps and if you have any questions. Thank you

    Kind Regards, 

    Miloš Jovanović
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables