Fix formatting precision
This commit is contained in:
parent
5fc5f6ac64
commit
787a94c085
@ -27,7 +27,7 @@ formatTheResultWithErrorBounds format pointEstimate (Just errorBound) = (formatS
|
||||
formatSimpleResult :: FormattingOptions -> MetricValue -> String
|
||||
formatSimpleResult = \case
|
||||
FormattingOptions (Just prec) True -> printf "%.*f" (prec-2) . (*100)
|
||||
FormattingOptions (Just prec) _ -> printf "0.*f" prec
|
||||
FormattingOptions (Just prec) _ -> printf "%.*f" prec
|
||||
_ -> show
|
||||
|
||||
selectLowerPrecision :: Int -> FormattingOptions -> FormattingOptions
|
||||
|
Loading…
Reference in New Issue
Block a user