Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4590524
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:15:52+00:00 2026-05-21T22:15:52+00:00

Like described in title, is there any way to format huge number like 1,000,000

  • 0

Like described in title, is there any way to format huge number like 1,000,000 (1 mln) or 45,500,000 (45,5 mln) to string to display shortened version of this number name. I just want to prevent all advices to do it manually. I know how to do this that way. I just want to find out if there is any easier way using NSNumberFormatter.

Cheers,

Lukasz

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T22:15:52+00:00Added an answer on May 21, 2026 at 10:15 pm

    I would suggest a combination of manual and using NSNumberFormatter. My idea is to subclass NSNumberFormatter. If the number you are formatting is > 1,000,000, you can divide it, use the super implementation to format the result, and append ” mln” to the end. Only do the part which you can’t have done for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any 256 color xterm for MacOS x? Like the one described below?
Like described in the title, is there some library in the Microsoft framework which
Like described in the title, I want to open a native ios viewcontroller when
As described in the title I would like to develop a Windows Forms Application
I know namespace are used to describe, like doctype, but is there a way
Is there a way of getting the window title from a Word.Application OLE object?
Like described in the docs.. http://download1.parallels.net/Plesk/PP10/10.2.0/Doc/en-US/online/plesk-api-rpc/index.htm?fileName=53497.htm It should be possible to change the home-location
I would like to implement an distributed Point-Of-Sale system, somewhat like the one described
I would like to connect to a clustered Oracle database described by this TNS:
I'd like to create the context extension methods described in Cesar de la Torre's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.