Float decimal precision is changed with body parameters

#59 · closed · 0 comments

View on GitHub ↗

svguerin3-puttshack

We spotted an issue where if we pass a 2-decimal Swift "Float" value in POST/PUT body parameters, it is changed to a long decimal in the actual call. For example: 25.98 becomes: **25.979999542236328** 0.18 becomes: **0.18000000715255737** I'd be glad to provide more info if needed. I've tried changing the type to Decimal and Double, but the issue still seems to remain.

Comments