Hello,
I am using strconv.FormatFloat[1] and strconv.ParseFloat[2]to convert float32s back-and-forth in a library I am working on. In my tests I decided to test all formats for FormatFloat ('b', 'e', 'E', 'f', 'g', 'G', 'x', 'X'). However, it seems like the 'b' format is not supported by ParseFloat (see [3]).
Is this correct? Is my code showing this correct?[3]
If Yes, is there some reason why the one format ('b') is not supported by ParseFloat?
My question is more one driven by curiosity rather than a need for this format. It was a surprise to me that one of the formats generated by the complement function in the same module was not supported.
Thanks,
Glen
[1]
https://pkg.go.dev/strconv#FormatFloat