Hello Ralph, Thank you very much for the help.
Riza On Fri, Dec 2, 2022 at 12:53 PM Ralph Corderoy <ra...@inputplus.co.uk> wrote: > > Hi Riza, > > > I have a location using a fraction like so "1/3 <A.ne, A.se>". How can > > I get the x component of that location? > ... > > a = 1/3 <A.ne, A.se>; > > print a.x; > > > > This fails at the assignment and it says "syntax error before ','" > > You're assigning an expression to a variable and ‘n/m <...>’ is > available in expressions as far as I recall. > > This should put you on the right track. > > $ cat third.tr > .PS > B: box > A: 1/3 <B.ne, B.se> > print A > print A.x > .PE > $ > $ pic <third.tr >/dev/null > 0.75, 0.0833333 > 0.75 > $ > > -- > Cheers, Ralph.