Hi
When you do a POST with "value":"7178.9955", the response returns "value":"7178.9956" ?
I don't get if it's an issue of the TMF spec (format should not be "float") or an issue of the API implementation that should not round the value ?
------------------------------
Olivier Arnaud
Orange
------------------------------
Original Message:
Sent: Jan 10, 2025 01:23
From: Darshan Mhatre
Subject: TMF 620 taxAmount and Price precision loss
How can I store the exact value, such as 7178.9955, in the TMF 620 POST API for fields like taxAmount and price, given that the schema specifies the value as a number with a float format and rounds the value to 7178.9956?
https://github.com/tmforum-rand/schemas/blob/candidates/Common/Money.schema.json
"value": {
"type": "number",
"format": "float",
"description": "A positive floating point number"
}
------------------------------
Darshan Mhatre
Comviva
------------------------------