I want to use the number of an equation as an integer value. Consider the following MWE:
\documentclass{article}
\usepackage[nomessages]{fp}% http://ctan.org/pkg/fp
\begin{document}
\begin{equation}\label{b1}
a+b
\end{equation}
\begin{equation}\label{b2}
c+d
\end{equation}
\FPeval{\result}{clip(\ref{b1}+\ref{b2})}
\ref{b1} + \ref{b2} = $\result$\par
\end{document}
I expect the result as the following:
1 + 2 = 3
How can I achieve this?

xfppackage you don't need the intermediate step (neitherclip):$\ref{b1} + \ref{b2} = \fpeval{\getrefnumber{b1}+\getrefnumber{b2}}$– Phelype Oleinik Dec 02 '19 at 14:27