0

It's in the post service:

{"baseYearFloatingShareCount":"76876",
  "baseYearStockPrice":"7777777"},
  {"security":
    {"symbol":"tt","id":3},
      "baseYearTotalShareCount":"87987",
      "baseYearFloatingShareCount":"98",
      "baseYearStockPrice":"88.98"
    }
  ],
  "indexCode":"kvfhvhjvyhv",
  "indexName":"jvjvjhvjhv",
  "description":"hvhjgvjhbvjhbv",
  "baseIndex":"76587",
  "sector":{"id":3},
  "calculationType":"FU"}
}

This is the JSON data that will be sent for this service

If you could see the Json data, "baseYearStockPrice":"88.98" the value is sent with two decimal places, but when it is being stored in DB .. it is stored as 88.9800033569336.

Please suggest what should be corrected?

zx485
  • 28,498
  • 28
  • 50
  • 59

0 Answers0