I have to deal with a lot of numbers in my latex documents. So far, I have been using a rudimentary \newcommand{\VarOne}{1000} to define \VarOne and then use it as it is using \VarOne{} in the document.
Can I use LaTeX to perform basic operations like add/ subtract/ multiply/ divide numbers --- integers/ non-integers?
Also, is there a way to print non-integers with comma separated values? So, \newcommand{\VarOne}{1000.97} produces 1,000.97 when used in the document? I can do this only for integers using \newcommand\mynum[1]{\num[group-separator={,},group-minimum-digits=4]{\the\numexpr(#1)\relax}} macro.
