Accessing float field gives different value than provided #515
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
I had a look around but couldn't find an existing issue. There is some strange rounding with float fields when the value is accessed on an instance vs encoded:
Why is
a.size
significantly different from the value I provided? Also the textproto produced by stringifying and the value produced byto_dict()
are correct:Environment details
proto-plus==1.25.0
Steps to reproduce
The text was updated successfully, but these errors were encountered: