mirror of
https://github.com/simonmichael/hledger.git
synced 2024-09-19 10:17:35 +03:00
;prices: note
[ci skip]
This commit is contained in:
parent
45198d3faa
commit
289891cacf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user