应用最终得分数值保留两位小数

This commit is contained in:
wanglinchun 2014-05-12 19:52:22 +08:00
parent 121b6389d5
commit 73a82662af
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@
</div>
<div style="float: left; padding-left: 100px; padding-top:35px ">
<div style="padding-left: 25px;">最终得分</div>
<div style="padding-left: 32px; padding-top: 1px; font-size: 15px; color: blue"><%= @softapplication.average(:quality).avg%>&nbsp;分</div>
<div style="padding-left: 32px; padding-top: 1px; font-size: 15px; color: blue"><%= @softapplication.average(:quality).avg.round(2)%>&nbsp;分</div>
<div style="padding-top: 3px"><%= rating_for @softapplication, :static => true, dimension: :quality, class: 'rateable div_inline' %></div>
</div>
<div style="float: left; padding-left: 100px; padding-top:35px ">