hi
I am trying to store 8digits in one array index, but it can only shows up to 6.. how can I change that?
I get 8.0702e+07 for the first one the rest are ok..Code:double array[]={80702001,40,70,60,55.5}
thanks
This is a discussion on 8 digits in index of array?? within the C++ Programming forums, part of the General Programming Boards category; hi I am trying to store 8digits in one array index, but it can only shows up to 6.. how ...
hi
I am trying to store 8digits in one array index, but it can only shows up to 6.. how can I change that?
I get 8.0702e+07 for the first one the rest are ok..Code:double array[]={80702001,40,70,60,55.5}
thanks
What are you using to display the number?
Check the width and precision you're using to print floats.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.