Hello,
Is there any way to display Volume figures in the following format
90,98,456
Instead of
9,098,456
Thank you
Hello,
Is there any way to display Volume figures in the following format
90,98,456
Instead of
9,098,456
Thank you
Quick answer is no. Thousand separator groups number in 3-digit groups.
Of course unless you format the number YOURSELF using printf/StrFormat
x = 9098456;
printf("%.0f,%02.0f,%03.0f", floor( x / 100000), floor( x / 1000 ) % 100, x % 1000 );
Is it possible with StrFormat in the below case for displaying volume in the above format in Chart Title?
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}}, Volume = ") + EncodeColor(colorGreen) + WriteVal(V,1.0) + StrFormat(" {{VALUES}}"));
Thank you.
printf and strformat output is same (read printf documentation its clearly mentioned ) :
x = 9098456;
myVOL= strformat("%.0f,%02.0f,%03.0f", floor( x / 100000), floor( x / 1000 ) % 100, x % 1000 );
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}}, Volume = ") + EncodeColor(colorGreen) + myVOL);
This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.