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

  • Home
  • SEARCH
  • 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 8722965
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:31:20+00:00 2026-06-13T07:31:20+00:00

So, my converter app is finally working, but with one major problem. It’s not

  • 0

So, my converter app is finally working, but with one major problem. It’s not working on the IRL iPhone, just the simulator iPhone.
Like this (IRL iPhone):

IRL Iphone

And the simulator phone does the same thing like this:
simulator iPhone

IDK Why this one is so much smaller.

Only difference I can find is that my phone is in Norwegian, so the keyboard on there got a comma ‘,’ instead of a period ‘.’

Code for the stuff that calculates it is here http://pastebin.com/nGaw7Agj

TLDR the irl iphone does not do the right thing, but the xcode simulator does.

  • 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-13T07:31:21+00:00Added an answer on June 13, 2026 at 7:31 am

    Only difference I can find is that my phone is in Norwegian, so the keyboard on there got a comma ‘,’ instead of a period ‘.’

    That is the answer. Since you have different locale, the first one gets rounded off to 13, instead of 13.37. I don’t know what quantities you are working with here, but in both cases, you seem to be multiplying with a constant ~133.4247, so the calculation is the same in both cases.

    The problem is that you are not using NSNumberFormatter when reading the values from the strings. NSNumberFormatter will take care of locale for you. Using [NSString floatValue] is a very crude way of converting a string to a number, and you have no control over locale conversions.

    In this line

    float input = [inputText.text floatValue];
    

    I would suggest changing to

    NSNumberFormatter* fmt = [NSNumberFormatter new];
    float input [fmt numberFromString:inputText.text].floatValue;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So my Calendar app is finally working properly. But it seems that the View
I'm porting a app to FreePasal/Lazarus & found that their form converter is not
I'm a bit confused, I set up my app as a simple converter but
I am working on a simple currency converter app and I want to grab
I'm trying to convert my app to ARC and the converter is throwing up
I'm using markdown editor in my app. $(document).ready(function () { var converter = Markdown.getSanitizingConverter();
i have just converted an app i was making from a navigation controller app
I have my ipad code created programmatically not using nib.I converted my ipad app
I'm making a converter app, and after realising I would have to type about
My app is a converter with a multicomponent picker wheel. It is made for

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.