Skip to content

workaround lack of numbers in serde #4

@ArtemGr

Description

@ArtemGr

Looks like we CAN NOT emit the proper numbers into Serde.
If, for example, (from 2090.5 * 8.61) we're getting 17999.204999999998 instead of 17999.205, we have no way to serialize the number properly into a {"field": 17999.205}.
cf. serde-rs/serde#2326

A workaround might be to serialize a placeholder instead, say, {"field": "CUSTOM> 17999.205 <CUSTOM"}, then post-process the serialized string, replacing "CUSTOM> 17999.205 <CUSTOM" with 17999.205.

https://app.bountysource.com/issues/115436299-workaround-lack-of-numbers-in-serde

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions