In my project (C++, GUI, C#) needed to work with different number systems (2,6,10,16 and not only). And to perform mathematical operations on them (addition, subtraction, multiplication, division). We have to work with natural and real numbers. And, ideally, to get the whole and fractional parts in the form of, for example, strings for displaying to users.
Need to be able to call functions, for example, addition with two arguments: 1 — a natural number in the decimal system (2300), 2 — real number in the ternary system ("2120.102")
Is there any library (in C++ or C#) that could provide this functionality?
If no, it would be better to implement in any functional language (although most likely already have) and link with C++ or C#?