frontend: Round numbers in rules
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
nemunaire 2025-03-29 22:37:08 +01:00
parent 08afde34a8
commit 532b3eccdc

View file

@ -162,19 +162,19 @@
</tr>
<tr>
<td>2</td>
<td>{10*$settings.globalScoreCoefficient*(1-$settings.discountedFactor)}&nbsp;points</td>
<td>{Math.round(100*$settings.globalScoreCoefficient*(1-$settings.discountedFactor))/10}&nbsp;points</td>
</tr>
<tr>
<td>5</td>
<td>{10*$settings.globalScoreCoefficient*(1-$settings.discountedFactor*5)}&nbsp;points</td>
<td>{Math.round(100*$settings.globalScoreCoefficient*(1-$settings.discountedFactor*5))/10}&nbsp;points</td>
</tr>
<tr>
<td>10</td>
<td>{10*$settings.globalScoreCoefficient*(1-$settings.discountedFactor*10)}&nbsp;points</td>
<td>{Math.round(100*$settings.globalScoreCoefficient*(1-$settings.discountedFactor*10))/10}&nbsp;points</td>
</tr>
<tr>
<td>20</td>
<td>{10*$settings.globalScoreCoefficient*(1-$settings.discountedFactor*20)}&nbsp;points</td>
<td>{Math.round(100*$settings.globalScoreCoefficient*(1-$settings.discountedFactor*20))/10}&nbsp;points</td>
</tr>
<tr>
<td>...</td>