lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Group-quote PDF: whitespace changes, and enhancement


From: Greg Chicares
Subject: Re: [lmi] Group-quote PDF: whitespace changes, and enhancement
Date: Mon, 19 Mar 2018 21:31:49 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

On 2018-03-10 00:34, Greg Chicares wrote:
[...]
> A.2. Scale everything differently: e.g., instead of a 999,999,999, make
> the maximum 99,999,999; I can ask whether that would be acceptable. I
> don't think a maximum of 9,999,999 would be high enough, because these
> values very often exceed $10M by age 70.

BTW, recent improvements to the scaling implementation mean that we
can experiment with a maximum width of eight digits rather than nine
by making the change below. If we want to do that in production, we
should also make some of the column headers narrower--e.g., for
user-defined supplemental reports, changing

  Curr Account
         Value

to

     Curr
  Account
    Value

---------8<--------8<--------8<--------8<--------8<--------8<--------8<-------
diff --git a/ledger.cpp b/ledger.cpp
index 3925fba2..bdc96483 100644
--- a/ledger.cpp
+++ b/ledger.cpp
@@ -324,7 +324,7 @@ void Ledger::AutoScale()
         extrema.subsume(i.second.scalable_extrema());
         }
 
-    int const max_power = 9;
+    int const max_power = 8;
     int const k = scale_power(max_power, extrema.minimum(), extrema.maximum());
 
     ledger_invariant_->ApplyScaleFactor(k);
--------->8-------->8-------->8-------->8-------->8-------->8-------->8-------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]