Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bzpr123pt

    (@bzpr123pt)

    +1 question ??
    Can I set: number format should be 2 decimal places in a column?
    thanks

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    Directly aligning for the decimal point is not possible. You would have to right-align the column. That’s e.g. possible by adding this to the “Custom CSS” textarea on the “Plugin Options” screen of TablePress:

    .tablepress-id-123 .column-3 {
      text-align: right;
    }

    (with the correct table ID and column number).

    For the number of decimal places: It’s best to change this in the source of where the data is coming from. If it’s a TablePress formula, you could use

    =NUMBER_FORMAT( 3.141, 2 )
    

    See https://tablepress.org/tablepress-features-formulas/ for more.

    Regards,
    Tobias

    Thread Starter bzpr123pt

    (@bzpr123pt)

    Thank you sir )

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Align to decimal point’ is closed to new replies.