You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
"Sorry but I don't understand this sentence."
Thank you
Ok, Value returned is 95.96 because of rounding. That has nothing to do with what we are discussing, see my previous post : it's only output format.
Alain, I think what threw me off was "e-005". I didn't understand "e" represented exponent and "-005" represented decimal location (decimal moved five places to the right of the decimal's original position).
Thank you
Alain, I think what threw me off was "e-005". I didn't understand "e" represented exponent and "-005" represented decimal location (decimal moved five places to the right of the decimal's original location).
Thank you
This not easy to apprehend at first. You can play with this wonderful tool, that helps to understand.
This not easy to apprehend at first. You can play with this wonderful tool, that helps to understand.
What are your thoughts as to what this "can price != price" issue is?
It is the issue of comparing double values. Is value1 == value2, is value3 != value4, is value5 > value6, etc.
What are "value1,2,3,4,5's" values? Can you post an example please?
Thank you
What are "value1,2,3,4,5's" values? Can you post an example please?
Giving values won't help . . . read the thread, do some research, keep reading until you understand
Value normalized (above).
Value original (above).
// desired value return is 0.00001.
Who had the brilliant idea to code the tester to return values in scientific notation? Hmm? Oh, and why!? Hmm? Documentation (https://www.mql5.com/en/docs/common/comment) reads along the lines of "...depending on what notation will be more compact.". Oh, its compact alright, Hahahahaha! ;)
Has anyone in the MQL5 community solved this problem I wish to solve?
Thank you
Value normalized (above).
Value original (above).
Who had the brilliant idea to code the tester to return values in scientific notation? Hmm? Oh, and why!? Hmm? Documentation (https://www.mql5.com/en/docs/common/comment) reads along the lines of "...depending on what notation will be more compact.". Oh, its compact alright, Hahahahaha! ;)
Has anyone in the MQL5 community solved this problem I wish to solve?
Thank you
To output real numbers with another accuracy or in a predefined format, use the DoubleToString() function.
Who had the brilliant idea to code the tester to return values in scientific notation? Hmm? Oh, and why!? Hmm? Documentation (https://www.mql5.com/en/docs/common/comment) reads along the lines of "...depending on what notation will be more compact.". Oh, its compact alright, Hahahahaha! ;)
Has anyone in the MQL5 community solved this problem I wish to solve?
Maybe it's me . . . but it appears that we suggest that you read something that will help you, and you say "OK - I will" and then you promptly go away and do something else . . . then come back here and forget everything that was written in this thread to help you.
Do you remember this post ?
RaptorUK:
If you want to see 0.00001000000000xyz then use DoubleToStr() to format the output to your liking.
or this . . .
RaptorUK:
So you mean something like this ?
Can price != price is a different, but slightly connected, issue. It can't really be solved, first you need to understand what the issue is . . . then you work around it.