added round function to make sure span/center are within the tunning res...

...olution of the device