Thats ok, I just needed to know whether I can use a Python specific solution. In your text component, you can use the following to round the numbers:
$round(float(Dn))
This will ensure that any number passed to Dn will be converted to a float (just in case it is imported as a string) and then will be rounded to 0 decimal places.