r/dotnet•
CodenameFlux

UInt64.Parse() doesn't like digit group separators

I noticed that Double.Parse() can convert numeric strings like 123,345,678 to Double, but UInt64.Parse() can't convert the same string to UInt64 (throws an exception). It's by design too...

I can always cast to UInt64, but still, I'm curious. Why? 🤔

Posted Feb 24, 2026, 9:23 AM UTC

019

Comments aren't archived yet

This post had 19 comments on Reddit. Comments for this period haven't been loaded into the archive yet.