Displaying DECIMAL data according to their definition

(4 posts) (2 voices)

Tags:

No tags yet.

  1. apao, Member

    Hello everyone,

    when I display INTEGER data in a report, they are displayed correctly (with no decimal place), but when I display DECIMAL(2,0) data, they are displayed with 2 decimal places. For instance, 3 is displayed as 3,00.
    As an admin, is it possible to tweak myDBR (without going into every report) so that it displays DECIMAL data according to their definition (0 decimal place for DECIMAL(x,0) data, 1 decimal place for DECIMAL(x,1), 2 decimal places for DECIMAL(x,3) and so on)?

    Best regards.

  2. myDBR Team, Key Master

    You can use the dbr.colstyle-command to define the number of decimals you wish to show.

    --
    myDBR Team

  3. apao, Member

    Thanks for your answer but does this mean there is no way for myDBR to dynamically adapt to the definition of DECIMAL data (especially the number of decimal places) ?

  4. myDBR Team, Key Master

    myDBR by default formats decimal and float numebrs with two decimals. You can format the numbers as you like with dbr.colstyle.

    --
    myDBR Team


Reply

You must log in to post.