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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:45:22+00:00 2026-05-24T19:45:22+00:00

What number object should I use i’ve tried double but it converts 1.4 to

  • 0

What number object should I use i’ve tried double but it converts 1.4 to 1.39999999

I’ve also tried NSNumber but I can’t find out how to do.

if (MyNum < 1.4) {

Also I need to convert from an NSString

I’m evaluation my app version number 1.4 is my new release version. I need to perform action if (appVer < 1.4)

  • 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-24T19:45:23+00:00Added an answer on May 24, 2026 at 7:45 pm

    Use NSString‘s built-in number conversion methods.

    NSString *version = [[[NSBundle mainBundle]infoDictionary]objectForKey:@"CFBundleVersion"];
    double versionNumber = [version doubleValue];
    

    Then use:

    if (versionNumber < 1.4) {
    

    NSString Documentation

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

Sidebar

Related Questions

When should we use an out parameter in C#? For example bool TryGetValue(out object
I have read a number of snippets that mention you should never use dot-notation
To initialize an instance, we can use either a default constuctor and a number
When manipulating excel cells in C# (via an COM object), should I use the
I keep hearing that Android applications should try to limit the number of objects
({}).toString.call(Number.prototype) === "[object Number]" The Number prototype object is itself a Number object (its
I have a significant number of object libraries written for PHP 5.2.5, and I'm
I'm writing binary serialiser/deserialser to convert a number of object types to/from a byte
I have one collection numbers with 200000 document object with {number: i} i =
I have a table declaration: TYPE PERSON_TYPE AS OBJECT (ID NUMBER(38), NAME VARCHAR2(20)); TYPE

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.