Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

TppDBCalc - Sum variable

edited November 2008 in General
I set the display format of the TppDBCalc as following:
$9,999,999.##

I got a value $1,561,238.635 rounded to
$1,561,238.63

However, I think it should be rounded to
$1,561,238.64 instead.

Anyway I can correct this?

Comments

  • edited November 2008
    Which version of ReportBuilder are you using? I believe this (or a similar)
    issue was addressed for a recent version of ReportBuilder.

    All display format logic is located inside the ppDisplayFormat.pas file. It
    is possible to descend from this class if you would like to alter the way
    numbers are processed in ReportBuilder. Your descendant will need to be
    assigned to the gcDisplayFormat variable (in ppUtils.pas) before a report is
    executed.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2008
    > Which version of ReportBuilder are you using? I believe this (or a

    The RB we are using is ver 5.56 for Delphi 5.

    The TppDBCalc I am using for the summation.
    I have details band and then put the TppDBCalc in the group footer to sum up
    all the 'Cost'.
  • edited November 2008
    Hi,

    This most likely was an issue with the version of ReportBuilder you are
    using. To fix this you will either need to upgrade to a newer version or
    replace the current TppDisplayFormat class as I mentioned in my previous
    post.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.