User blog comment:DaNASCAT/Technical Update: January 20, 2016/@comment-24531999-20160125214327/@comment-126761-20160126144210

Ah, I see. I think rounding might help you here: https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions#Rounding ?