diff --git a/hledger/Hledger/Cli/Commands/Prices.hs b/hledger/Hledger/Cli/Commands/Prices.hs index 6a9ec0ab6..a51a1af07 100755 --- a/hledger/Hledger/Cli/Commands/Prices.hs +++ b/hledger/Hledger/Cli/Commands/Prices.hs @@ -50,6 +50,7 @@ divideAmount' n a = a' where extPrecision = (1+) . floor . logBase 10 $ (realToFrac n :: Double) precision' = extPrecision + asprecision (astyle a) +-- | Invert an amount's price for --invert-cost, somehow (? unclear XXX) invertPrice :: Amount -> Amount invertPrice a = case aprice a of