Largest data type size in c# is the decimal. If we need to calculate a numerical with 40 floating digits what do you suggest?
Please only tag C# as the title had mentioned the language, multiple tags is misleading and may confuse those who looked at tags for specific subjects.
you know, it is not only about c#, this is a general problem in most programming languages if you have some similar algorithm in other langs it will be useful however i edited the tags to only C# 😊
A 10 bytes double is the largest I think https://stackoverflow.com/questions/14221612/difference-between-long-double-and-double-in-c-and-c
if you want c# it's a tie between long and double
decimal size in C# is 16Bytes
https://stackoverflow.com/questions/4523741/arbitrary-precision-decimals-in-c-sharp there's an implementation listed here using the BigInteger class