xgbtxy commented on PR #1682: URL: https://github.com/apache/arrow-go/pull/1682#issuecomment-7328999624
@zeroshade Thanks for reviewing and checking the arithmetic! Both points are updated: 1. Updated the PR description to state that this fixes `IsInf`, subnormal, and NaN handling (rather than IEEE 754 rounding, since `New` still truncates). 2. Dropped the redundant `shift < 24` guard in `New(f float32)` and tightened `TestSubnormalAndSpecialFloat32Conversions` to assert exact `assert.Equal(t, n, roundTrip)` across all 65,536 encodings (including NaN payloads). Verified locally with `go vet ./arrow/float16` and `go test -race ./arrow/float16`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
