Changing the number of digits in a tag

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
You can use TagVal(2) with the appropriate printf format:

Tag wave0, xval, "\\{\"%.3g\",TagVal(2)}"
Enter the following text into the annotation text entry area in the Add/Modify Annotation dialog:

\{"%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.]
The two reactions were very helpful. Many thanks again. I was not that clear about the number of digits. What I meant is to always have two digits after the decimal point.

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