How could a function a bit like basiceval be written to give a real number result as opposed to an integer, making the third calculation here more accurate?
\documentclass[american, a4paper]{report}
\def\basiceval#1{\the\numexpr#1\relax}
\begin{document}
\def\variableA{30}
\def\variableB{10}
\def\variableC{3}
\begin{itemize}
\item \basiceval{360/\variableB}
\item \basiceval{\variableA/\variableB}
\item \basiceval{\variableB/\variableC}
\end{itemize}
\end{document}


\dimexpr, however, you've to use lenghts – Oct 06 '15 at 18:10\the\dimexpr\variableB pt/\variableC\relax– Gonzalo Medina Oct 06 '15 at 18:22