Skip to content

Amount has at most 2 decimals #91

@jpmckinney

Description

@jpmckinney

Need to check whether some countries could have more. This check might not apply to unit values.

Noticed that some publishers have potential floating point issues, like 28274.399999999998

For example, at time of writing this package has that number: https://contratacionesabiertas.osce.gob.pe/api/v1/releasesAfter?format=json&order=desc&searchAfter=1683120791420%2C1209600000000%2Cocds-dgv273-seacev2-951934-2023-05-03T08%3A33%3A11.420620-05%3A00&first=ocds-dgv273-seacev3-2023-10432-11-2023-07-28T08%3A31%3A20.871956-05%3A00

Process loads data with simplejson to avoid floating point issues. Pelican would need to do similar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions