Viewer: fixed the issue with digit grouping not working with integer numbers (closes #438).