+ 3
Largest data type size in c# is the decimal. If we need to calculate a numerical with 40 floating digits what do you suggest?
6 Respostas
+ 1
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.
+ 1
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# 😊
0
A 10 bytes double is the largest I think
https://stackoverflow.com/questions/14221612/difference-between-long-double-and-double-in-c-and-c
0
if you want c# it's a tie between long and double
0
decimal size in C# is 16Bytes
0
https://stackoverflow.com/questions/4523741/arbitrary-precision-decimals-in-c-sharp
there's an implementation listed here using the BigInteger class