;prices: note

[ci skip]
This commit is contained in:
Simon Michael 2019-06-01 14:54:10 -07:00
parent 45198d3faa
commit 289891cacf

View File

@ -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