handle negative numbers in rint() and localize "n"