> From 10000000 to 10_000_000 is such a readability improvement and should be no-cost.
1e7
1e7
Is a float literal.
var u uint32 = 10000000000.0 / 100000
even though 10000000000 overflows uint32 and it's also written like a floating-point literal.Yes in go. `var u = 1e7` gives a float. That means 1e7 is a float literal. You can coerce it to an integer by explicitly typing the target, but it's still a float literal.
12_345_678
1.2345678e7Kind of realising how much of my daily work could use bytes as the main numeric type