To remove decimals from measurement units must change number format for size value to not include decimals.
Help for number format issue: http://php.net/manual/en/function.number-format.php
Screenshot with the place where must change it
Original code with 2 decimals
Modified code with 0 decimals
Change thousand separator, ex “1,248” instead of “1 248” , apply the thousand separator in the code