Remove decimal if unit could be an interger.