Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Doubles doing my head in!

Doubles doing my head in!

Doubles doing my head in!

Hello everybody.

When I write the code...


cout << 83865.5657 / 0.01;

...it outputs 8.38656e+006 yet when I do it with Windows Calculator I get 8386556.57. Why is this? I'm not very good at maths and don't really understand what the e+006 on the end of my result means. Also not being very good at maths I can't work out why I get different results. Also is it possible to out put the result without the e+006 notation on the end?

Thanks for you help

RE: Doubles doing my head in!

That's exponential notation.
The +6 means: to view it in normal form, move the decimal point right 6 digits.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close