比率保留 1 位

This commit is contained in:
lizanle 2015-07-10 11:05:33 +08:00
parent 49b1b11d7b
commit 15f8e4272e
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ module ApiHelper
if homework_eva_task_num == 0
0
else
( homework_eva_completed_task_num / homework_eva_task_num.to_f * 100 ) .round(2)
( homework_eva_completed_task_num / homework_eva_task_num.to_f * 100 ) .round(1)
end
end