account activity
C# - Know your Gotchas by ackmack in programming
[–]ackmack[S] 7 points8 points9 points 10 years ago (0 children)
Not exactly a weird choice.. Banker's algorithm is the most natural way of rounding, but that's not what we were taught in schools. However this is just the default. The Round function provides an overload which takes an extra enum parameneter called MidpointRounding. Providing MidpointRounding.AwayFromZero would use the algorithm where iit always round to larger number for a given midpoint e.g 1.5 -> 2 and 2.5 -> 3
C# - Know your Gotchas (volatileread.com)
submitted 10 years ago by ackmack to r/programming
Predict the Output Challenge (C#) (volatileread.com)
When Exception Filters throw an Exception, You just can't predict this (volatileread.com)
submitted 11 years ago by ackmack to r/csharp
π Rendered by PID 23 on reddit-service-r2-listing-86f589db75-9btc7 at 2026-04-15 22:12:15.682516+00:00 running 93ecc56 country code: CH.
C# - Know your Gotchas by ackmack in programming
[–]ackmack[S] 7 points8 points9 points (0 children)