I'm wracking my brains over a seemingly simple problem. Given a coordinate, I would like to do some computation with its components. More specifically, I want to compute the elevation of a point.
Consider this M(not)WE:
\documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at (2,3); \newdimen\x \newdimen\y \pgfextractx{\x}{\pgfpointanchor{A}{center}} \pgfextracty{\y}{\pgfpointanchor{A}{center}} \pgfmathparse{atan2(\y,\x)} \node at (1,1) {\pgfmathresult}; \end{tikzpicture} \end{document} My goal is to extract the x and the y component from the point A, compute the elevation, and print this in a node. How can I achieve this?

\pgfmathresultvalue is overridden by the implementation of\node. Using\pgfmathsetmacroor computing the\pgfmathresult"late" as in the answer below does not suffer from this issue.