Skip to content

Commit

Permalink
Korektis formaton.
Browse files Browse the repository at this point in the history
  • Loading branch information
masaniwasdp committed Feb 2, 2018
1 parent bd6de9e commit 837fcbb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Hakocalc/Command.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ calcProbability
:: ProbabilityOption' -- ^ Opcio por komando.
-> IO ()

calcProbability (ProbabilityOption' h q) = printf "%.3f%%" (per :: Double)
calcProbability (ProbabilityOption' h q) = putStrLn str
where
str = printf "%.3f%%" (per :: Double)

per = (* 100) . fromRational $ fromProbability res

res = killingProbability h q
Expand Down

0 comments on commit 837fcbb

Please sign in to comment.