https://learn.microsoft.com/en-us/dotnet/core/compatibility/...
Be aware
(decimal)0.1 // .NET 10: 0.1 // .NET 11: 0.1000000000000000055511151231
Wow, what a vicious footgun. I do a lot of work related to pricing, invoicing, exchange rates etc... where decimals do matter, so this kind of stresses me out. Thanks for the heads up.
Thanks for that heads up, also:
(decimal)0.1f 0.100000001490116119384765625
Wow, what a vicious footgun. I do a lot of work related to pricing, invoicing, exchange rates etc... where decimals do matter, so this kind of stresses me out. Thanks for the heads up.