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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:36:31+00:00 2026-06-12T19:36:31+00:00

I am trying to make a time based drawing. For example: define a point

  • 0

I am trying to make a time based drawing. For example: define a point for later use.

CGPoint testPoint = CGPointMake(2341.2345, 1350046324.1234);

Then testPoint.y becomes 1350046336.00 which is not we put there.
I am using Xcode 4.5.
Any ideas? Thanks.

  • 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-12T19:36:33+00:00Added an answer on June 12, 2026 at 7:36 pm

    CGPoint uses float (32bit) datatypes (at least on iOS6).

    From the headers:

    CGPointMake(CGFloat x, CGFloat y) ...
    

    with

    typedef CGFLOAT_TYPE CGFloat;
    

    and

    # define CGFLOAT_TYPE float
    

    So this results in my test code:

    CGPoint testPoint1 = CGPointMake(2341.2345, 1350046324.1234);
    CGPoint testPoint2 = CGPointMake(2341.2345f, 1350046324.1234f);
    double d = 1350046324.1234;
    float f = 1350046324.1234;
    
    NSLog(@"%f %f %f %f", testPoint1.y, testPoint2.y, d, f);
    

    printing to the log:

    1350046336.000000 1350046336.000000 1350046324.123400 1350046336.000000
    

    So you just left the range of numbers where single precision floats are good enough.
    Thats all.

    BTW.: I did think CGFloat is double before I stumbled upon your question.

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

Sidebar

Related Questions

I'm trying to make a time with Time.local which in my code is dynamic.
I am trying to make an action where every time you press a button,
I am trying to make my accept call timeout after a specified time period
I'm trying to make a field where user will enter amount of time per
I'm trying to make it working for quite some time,but just can't seem to
It's my first time trying to make anything really interesting in C# and I
I am trying to make the image title display at the same time the
I'm trying to make a multiplayer game for the first time on Android. I
I am trying to make a button to add another input box every time
So I'm trying to make a console app that imposes a time limit to

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.