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