Okay, I only started learning c++ two days ago so please be patient with me. I tried searching the board for help so as not to bether anyone, but I honestly don't know what the problem is.


---Background info only (no need to read unless you are bored)---
Okay, I figured that the easiest way to start would be to write a simple program to factor some small numbers. I wrote a really simple one that worked with the basic: input integer; define number to be divided by; do a exhaustive search by adding 1 to the testing number every time and so on.

I started working on getting the code sped up so I could factor larger numbers. I think I it is working correctly but my problem is that it doesn't display the whole factor. Let me show an example. I input "98765432101" as the number to be factored. then the output is a simple "1*7*149*9.46936e+07". My problem is that I need that last number to be displayed as a number with all places.


---The Problem---
I need to get the program to output the exact number I put in, while treating it as a number, not a string or anything else. This is my code (which perfectly describes my problem, although it is only a code made for me to solve it, not any portion of my real code):
Code:
#include <iostream.h>
int main()
{
  double number;
  cin>>number;
  cout<<number;
}
When I enter "98765432101" I recieve "9.87654e+10" as the output. I need it to print out "98765432101". Any help would be appreceiated.