smithy-lang / smithy

Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
https://smithy.io
Apache License 2.0
1.7k stars 201 forks source link

Update Value to Exact IEEE Floating Point Representation #2321

Closed drganjoo closed 2 weeks ago

drganjoo commented 2 weeks ago

Background

Some protocol tests were using the value 7.624 for a member shape of float type. However, this value does not align exactly with the IEEE floating-point representation and may lead to ambiguity in implementations when confirming serialization or deserialization correctness.

The tests have been updated to use 7.625, which can be precisely represented in IEEE format.