|
Right. You either change the default number of decimal places in Tools->Preferences OR you use the Title = statement and then your printf formatting will work. -- Terry -----Original Message-----
Hi Is there a way to format a number to a set number of decimal places. E.g. In the below example round the number to 2 decimal places.
PlotText( "Buy @ "+ 1234.5678, xCoordinate , yCoordinate , PlotColour , colorWhite );
It seems that formatting used in printf e.g. printf ("2 decimal = %0.2f", 1234.5678); doesn’t work in PlotText
Thanks Peter
|
- [amibroker] PlotText & Formatting Decimals? Peter
- RE: [amibroker] PlotText & Formatting Decimals? Gordon Sutherland
- RE: [amibroker] PlotText & Formatting Decimals? Terry
