Thu, 09/03/2009 - 02:42 pm
In a tag I would like to reduce the number of digits from six down to three. In a table the number of digits can be easily changed. I am wondering whether that is also possible for tags. The tag in my graph was attached using the option "Attach point Y value". The Y values were created synthetically.
Thanks!
Eduard Kas
Tag wave0, xval, "\\{\"%.3g\",TagVal(2)}"
September 3, 2009 at 05:34 pm - Permalink
\{"%3.f", TagVal(2)}
[Edit: Jim beat me to the punch. My solution always gives you 3 digits, not 3 digits past the decimal point like you probably wanted.]
September 3, 2009 at 05:36 pm - Permalink
My original code was written as If day is \OX, then share price is \OY. In line with the advice I replaced OY by {"%.2f",TagVal(2)} and achieved what I wanted, a tag that for the 49th day reads as follows: If day is 49, then share price is 5.88.
Many thanks again.
Eduard
September 4, 2009 at 01:57 pm - Permalink