Open APIs

 View Only
  • 1.  TMF 620 taxAmount and Price precision loss

    TM Forum Member
    Posted 10 days ago
    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
    ------------------------------


  • 2.  RE: TMF 620 taxAmount and Price precision loss

    TM Forum Member
    Posted 7 days ago

    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
    ------------------------------