Skip to content

Commit c0e3bf9

Browse files
committed
rounding with toFixed
1 parent ff0ea00 commit c0e3bf9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/bestworst/ItemCard2.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</div>
1111

1212
<div class="is-size-7 has-text-gray-grey fit2box-center">
13-
{{ exampleMeta?.weight ? Math.round(exampleMeta?.weight * 10000.0) / 10000.0 : ''}}
13+
{{ exampleMeta?.weight ? parseFloat(exampleMeta?.weight).toFixed(weightType == 'similarity' ? 3 : 5) : ''}}
1414
|
1515
<span class="is-italic">
1616
{{ exampleMeta?.context?.biblio }}

0 commit comments

Comments
 (0)