Developer Forum [ All Topics | New Topic ]

Thread: Trailing zeros on returned XML price

I have been setting up a php application using the SOAP API.

I got the api working and can receive a single price for a diamond.

My only question is that say I input a 1 carat , D, IF , it should return "242.00" but instead I receive "24200.0000" with 4 trailing zeros and the decimal out of place.

Is this something I am doing wrong or is this correct and I just have to modify the decimal myself?


>> add a comment
Sean
03/26/2015 06:53


2 Replies:

So I realized what my issue was, i did not see that the prices returned were dollars per carat, not 100s of dollars per carat like on the PDF sheets.

Everything is working as intended.

>> add a comment
Sean
3/27/2015 4:55:00 PM
Good to hear :-)

>> add a comment
Leo Muller
3/29/2015 12:45:00 AM