It is assumed that it is possible to add extension methods for BigDecimal by converting BigDecimal to BigInteger and reusing extension methods for BigInteger.
We should check what is currently available on the BigDecimal data type in C#, see how other libraries work with it.
If there is nothing suitable, then, perhaps, implement the BigDecimal data type yourself. And add implementations of mathematical methods to this class.
It is assumed that it is possible to add extension methods for
BigDecimalby convertingBigDecimaltoBigIntegerand reusing extension methods forBigInteger.We should check what is currently available on the
BigDecimaldata type in C#, see how other libraries work with it.If there is nothing suitable, then, perhaps, implement the
BigDecimaldata type yourself. And add implementations of mathematical methods to this class.