fnielsen / ordia

Wikidata lexemes presentations
https://ordia.toolforge.org
Apache License 2.0
24 stars 13 forks source link

Round the average number of statements to at most 2 decimal places #180

Closed nikkiwd closed 8 months ago

nikkiwd commented 9 months ago

The default behaviour produces numbers with 20 decimal places, which is excessive in this context. Rounding to at most 2 decimal places produces more reasonable results. Since SPARQL can only round to the nearest integer, the value is multiplied by 100 before rounding and then divided by 100 afterwards. Values with fewer decimal places will not change.

Example values before and after this change:

dpriskorn commented 9 months ago

LGTM