How to configure text and units for DIN dimensions?
DIN standard recomend to use meter as unit for dimension equal or above one meter and use centimeter for dimension below. Also in DIN standard, the last decimal digit should be rounded to 5 or 0 and in superscript. Please check with the exact standard you need to apply as it might change.
To get the unit to change according to dimesion value
To get the last decimal digit in superscript and rounded