How to create high precision numbers array - need help.
I don't see what your issue is . . .
double array[x]; // x is the number of elements
Yes you are right but when i code:
double array[x]=1.12345678;
the compiler will round 1.2345678 to four digits after comma and i need 8.
raniel:
Does it ? how do you know this ?
Yes you are right but when i code:
double array[x]=1.12345678;
the compiler will round 1.2345678 to four digits after comma and i need 8.
Print(array[x]);
The message will be 1.1234
Print only prints 4 decimal digits even if you had 20 . . . use DoubleToStr() to print upto 8 decimals
Great to hear that. But i have another question, will this number (array[x]) will be treat with 8 digits precision in all calculations inside indicator?
string DoubleToStrMorePrecision(double p){ return( DoubleToStr(p,8) ); }
Never mind problem solved tahnk you both for your time and help, and sory form my stupid questions ;) Like i said i'm new to programing. Thanks again.
Hello.
I'm trying to create an indicator but to do this i need to implement to code an array of high precision doubles and i dont know how to do this. For example:
Array[3]=4.12345678;
I tried many different functions but they aren't work for example DoubleToStrMorePrecision() create a string and i need number. Please help me i'm new to programming.