How to set digit in ObjectSetText(..) ?

 

How to set 2 digit ?

Ex. ObjectSetText("Close Price","Cl = "+Close[i], 10, "Times New Roman", White);

Result : Cl = 1310.64200000

want : Cl = 1310.64


Thank you

 
sorasit46:

How to set 2 digit ? Ex. ObjectSetText("Close Price","Cl = "+Close[i], 10, "Times New Roman", White);


  1. Play video
    Please edit your post.
    For large amounts of code, attach it.

  2. ObjectSetText("Close Price","Cl = "+DoubleToStr(Close[i],2), 10, "Times New Roman", White);

 
Thanks alot