Bug 7036 - FEATREQ: Configurable precision in summary report
Summary: FEATREQ: Configurable precision in summary report
Status: NEW
Alias: None
Product: Spamassassin
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 3.3.2
Hardware: All All
: P2 enhancement
Target Milestone: Undefined
Assignee: SpamAssassin Developer Mailing List
Depends on:
Reported: 2014-04-21 20:11 UTC by Dianne Skoll
Modified: 2014-04-21 20:11 UTC (History)
0 users

Attachment Type Modified Status Actions Submitter/CLA Status

Note You need to log in before you can comment on or make changes to this bug.
Description Dianne Skoll 2014-04-21 20:11:50 UTC

Yes, I have read http://wiki.apache.org/spamassassin/RoundingIssues

I would like the number of decimal digits of precision in the summary report to
be configurable.  Right now, it's hard-coded thusly:

  $score  = sprintf("%2.1f", $score);

in get_tag_value_for_score (Util.pm) and _get_tag_value_for_required_score

Could we change it to something like: sprintf("%2.${precision}f", $score), where $precision is obtained from the SpamAssassin configuration, defaulting to 1?