
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
Go to your profile and select Service Desk
. . a new, more complete example for the Print function has been added to the help:
Since you dealt with this issue, could you explain where the extra digits come from, they are marked in red.
I just previously thought that for IEEE 754 the number of significant digits can not exceed 17, and not after the decimal point, but all.
I just used to think that for IEEE 754 the number of significant digits cannot exceed 17, and not the decimal point, but the total.
To be honest, it never bothered me. But here are a couple of links if you're interested:
I don't guarantee there will be answers to these questions, but they might be interesting to read.
Honestly, it never bothered me.
There must be something wrong with the DoubleToString function.
Test (EURUSD,D1)666666.6666666666278616
This is the function that generates unnecessary significant digits. They should not be there.
There must be something wrong with the DoubleToString function.
Test (EURUSD,D1)666666.6666666666278616
This is the function that generates unnecessary significant digits. There should not be any.
Have you got to DoubleToString? :) Again, not claiming anything: the Handbook says literally the following:
"If the digits value lies in the range 0 to 16, the string representation of the number will be retrieved with the specified number of decimal places. If the digits value lies between -1 and -16, then a string representation of the number in scientific format with the number of decimal places specified will be obtained. In all other cases, the number string will have 8 decimal places".
You have specified a value of 30. According to the description in the Reference Manual, the string value of the number should have 8 decimal places in this case.
Got to DoubleToString? :) Again, not claiming anything: the Reference Manual says literally the following:
You have a value of 30. Judging by the description in the Reference Manual, the string value of the number in this case should contain 8 decimal places at all.
The reference book also has a minus sign in this place :)
I copied it from here: https://www.mql5.com/ru/docs/convert/doubletostring
The phrase I highlighted, "In all other cases, the string value of the number will have 8 decimal places" does not seem to contain a minus sign :/
And the underlined word in the sentence is redundant. :)
My question got lost.
https://www.mql5.com/ru/forum/1111/page721#comment_179003
The warrant is still pending.