With integers, it is very common to want an integer type whose size is the platform's native word size: this has performance benefits, as well as benefits for low-level interoperability with other parts of the system that use the word size.
With floating-point values, this is not the case. Even on 32-bit systems, double-precision floating-point (Go's float64
) is generally much more common, and generally not slower, than single-precision (float32
). Single-precision floating-point arithmetic is relatively uncommon, and is generally only useful when memory usage or input-output speed is a much stronger consideration.
So although you write that float
"would be equivalent to float32
or float64
depending on [your] system's architecture", I'm not sure on what architecture you feel it should be equivalent to float32
.