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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:40:45+00:00 2026-05-20T10:40:45+00:00

i have written a program and it works with 3D coordinates (i.e. x,y,z). input

  • 0

i have written a program and it works with 3D coordinates (i.e. x,y,z).

input data for my program was like

50903.85 21274.97 15.03 
50903.57 21274.96 15.08 
50903.33 21274.95 15.17 

and i got the output with some more columns. So, i got the same x,y,z for my output file.

50903.85 21274.97 15.03 
50903.57 21274.96 15.08 
50903.33 21274.95 15.17

so, my program works properly, i guess.

then, i used another data set, having more digits than the previous data,

512330.98 5403752.71 330.39 
512331.01 5403754.18 329.44 
512331.06 5403755.59 329.56 

and my output was like;

512331 5.40375e+006 330.39 
512331 5.40375e+006 329.44 
512331 5.40376e+006 329.56 

here, i am not able to get real values. and x values are also rounded. i cant think what should be the reason?

in my program, i used “double” for assigning variables for x,y,z values. SO, i would like to know what is the maximum numerical value that can be refereed to double?

if someone need to work with very long values, what should be the relevant variable?

  • 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-20T10:40:45+00:00Added an answer on May 20, 2026 at 10:40 am

    Numbers aren’t changing, you are just seeing a different notation change there. Perhaps you are using something other than %f to format your doubles? See printf format parameters.

    Better yet, check out this StackOverflow question: How to avoid scientific notation for large numbers?

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

Sidebar

Related Questions

I have written a program which works on huge set of data. My CPU
I have a program written in C that has to input and output JSON
I have written a program for Bar code scanner application it works fine in
I have written a program that uses qhttp to get a webpage. This works
I have written a java program that is actually works as a gui to
I have written this program, which sorts some ints using a functor: #include<iostream> #include<list>
I have a program written in c that gets invoked like: my_program arg1 arg2
I have written a C++ program (which executes from the command line), that works
I have written an email signature generator in PHP. The program spits out output
I have written a simple program using parallel python, and all works well. However,

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.