With PrintFormat and StringFormat, what's the magic code to drop leading zeros from a double data type?
double pip = 10 * _Point; StringFormat(".%04i", v/pip);

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
For example, %.4f will display a double to 4 decimal places, but for the life of me I can't find a simple way of suppressing that useless leading zero. Sure, if the integer part is "1", by all means show it, but not a "0.xxxx".
I'm trying to cram a lot of data in a tiny space and need that pesky 0 to go away, lol.
And sure, I know I could manipulate the string and force the zero to drop, but I'm also trying to minimize extra processing time. My charts are slow enough as it is now! :-D
Anyone know the secret password?