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
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.