mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-11-21 18:42:29 +01:00
Fix Snapshot#round
This commit is contained in:
parent
e9bd3f3320
commit
59a8a28ddb
@ -37,10 +37,9 @@ class Snapshot
|
||||
end
|
||||
|
||||
def round(rate)
|
||||
case rate
|
||||
when rate > 100
|
||||
if rate > 100
|
||||
rate.round 2
|
||||
when rate > 10
|
||||
elsif rate > 10
|
||||
rate.round 3
|
||||
else
|
||||
rate.round 4
|
||||
|
Loading…
Reference in New Issue
Block a user