You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Packing a float value does not necessarily pack it as a float in the underlying protocol you try to optimize for space. This is not a bug, but it makes for very cumbersome code when unpacking floats, because a float can be encoded either a UInt of some length, or an Int of some length.
Unless I'm missing something (I'm pretty new to Go), you have to decode it as such:
Packing a float value does not necessarily pack it as a float in the underlying protocol you try to optimize for space. This is not a bug, but it makes for very cumbersome code when unpacking floats, because a float can be encoded either a UInt of some length, or an Int of some length.
Unless I'm missing something (I'm pretty new to Go), you have to decode it as such:
Shouldn't this be handled automatically with something like UnpackFloat32/64() ?
The text was updated successfully, but these errors were encountered: