Avoid returning negative zeroes in v2s_f32_rounded

This ensures that values roundtrip correctly since -0.0 and 0.0
correspond to the same normalized value.
This commit is contained in:
Robbert van der Helm
2023-04-27 12:29:49 +02:00
parent af12853644
commit 0afe6852b3
2 changed files with 32 additions and 2 deletions

View File

@@ -10,6 +10,14 @@ Since there is no stable release yet, the changes are organized per day in
reverse chronological order. The main purpose of this document in its current
state is to list breaking changes.
## [2023-04-27]
### Changed
- The `v2s_f32_rounded()` formatter now avoids returning negative zero values
for roundtripping reasons since -0.0 and 0.0 correspond to the same normalized
value.
## [2023-04-24]
### Breaking changes