应用最终得分数值保留两位小数
This commit is contained in:
parent
121b6389d5
commit
73a82662af
|
@ -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%> 分</div>
|
||||
<div style="padding-left: 32px; padding-top: 1px; font-size: 15px; color: blue"><%= @softapplication.average(:quality).avg.round(2)%> 分</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 ">
|
||||
|
|
Loading…
Reference in New Issue