128 max lengths
Closed this issue · 2 comments
gilescope commented
Hi was just passing through and might have spotted something slightly amiss.
I agree that i64 and u64 has different max lengths (19, 20) but I don't believe this is the case for 128:
Line 354 in ac8183c
Shouldn't they both be 39?
(also if we're there we should probably make that other constant only available with the feature)
(If you agree I'll raise a PR to adjust.)
dtolnay commented
println!("{}", i128::MIN.to_string().len());
gilescope commented
Ah I'm missing the minus sign. Makes sense now. Sorry!