Jan Naj:
I have a object CEdit and i can writte (by handle in MT4) number type double (for example 0.01).
When I rewrite the number, for example to 1, only the number 1 remains in the CEdit field, but I need 1.00 to remain there (with preserved hundredths).
Can it be fixed so that hundreds of automatically remain in the field even if I rewrite it to any number?
I tried it over NormalizeDouble, but every time I rewrite the field by hand, the dot, tenths and hundredths disappear, it should work, but I don't know how, please advise me.
Thanks
JB
You should be able to use
DoubleToString(double, 2);
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
I have a object CEdit and i can writte (by handle in MT4) number type double (for example 0.01).
When I rewrite the number, for example to 1, only the number 1 remains in the CEdit field, but I need 1.00 to remain there (with preserved hundredths).
Can it be fixed so that hundreds of automatically remain in the field even if I rewrite it to any number?
I tried it over NormalizeDouble, but every time I rewrite the field by hand, the dot, tenths and hundredths disappear, it should work, but I don't know how, please advise me.
Thanks
JB