3 ms·
Don't think that's quite right. `float` has 4 bytes, and `double` has 8. The `decimal` type has 16 bytes and does all it's arithmetic in base 10. https://learn
by kdowns 3y ago
Don't think that's quite right. `float` has 4 bytes, and `double` has 8. The `decimal` type has 16 bytes and does all it's arithmetic in base 10.
https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/floating-point-numeric-types#characteristics-of-the-floating-point-types https://learn.microsoft.com/en-us/dotnet/csharp/language-ref...