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 7962031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:13:05+00:00 2026-06-04T05:13:05+00:00

I have a basic calculator app and it doesn’t handle percentages properly in regions

  • 0

I have a basic calculator app and it doesn’t handle percentages properly in regions where a decimal point “.” is used as the comma separator and a comma “,” is used to mark the radix point. I am working on a fix for this but in the meantime I am wondering if when my app launches, I could override the Region Format set in the devices settings app and force a specific Region Format, only for my app.

Is this possible? Thank you for your time with this.

  • 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-06-04T05:13:07+00:00Added an answer on June 4, 2026 at 5:13 am

    Instead of doing this, I suggest you look at NSNumberFormatter and NSNumber to do it the right away. For example, this should work regardless of the device’s regional settings.

    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];
    [formatter setNumberStyle:NSNumberFormatterDecimalStyle];
    NSNumber *test = [formatter numberFromString:@"1,000,000"];
    

    Also look at the other functionality provided by NSNumberFormatter. This seems like a more elegant way to do it than what you’re trying.

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

Sidebar

Related Questions

I have a graphing calculator app that can graph basic trig functions like sin
I have a basic canvas Facebook app with a web template. I tried to
I have a basic ASP.NET MVC 3 app. I have a basic action that
I'm trying to develop a basic GPA Calculator. I have an AllCourses class that
I'm building a basic calculator app for iPhone. I've got all the basics in
I have recently used Visual Basic .Net to write a particle system which emits
I have a basic web app that given a url, hits a database, does
I want to create a basic app where you have 8 numbered buttons, with
I have a basic HTML form named Calculator, with a button named "btnOne". What
I have a very basic script that calculates and changes the width of a

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.