If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.
Register Today on DNForum IT'S FREE!I have an eBay API script and a simple fix.
When it displays the products, it will drop a zero in the cents area.
Example: $10.5
Should be: $10.50
Does anyone know how to fix this?
Any help would be appreciated.
You did not specify the language you're using for the API.
In PHP you might find the following functions helpful:
http://www.php.net/manual/en/function.money-format.php
http://www.php.net/manual/en/function.sprintf.php
http://www.php.net/manual/en/function.number-format.php
Make sure you have a look at the examples there.
If that doesn't help, tell us the language that API wrapper script is written in and how you use it -- some code examples might help others to determine what the problem is.
Marcus
Domain Name Generator, Bulk Domain Search, Dictionary Domains, Keyword Domains
+ Premium Name Search and free desktop domain name generator/domain search tool for Windows and Mac
Bookmarks