Format numbers using locales