Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

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!

Results 1 to 2 of 2

Thread: eBay API Help

  1. #1
    Platinum Lifetime Member
    primster7's Avatar
    Join Date
    Sep 2006
    Location
    California
    Posts
    48
    Country

    United States
    DNF$
    502
    Bank
    0
    Total DNF$
    502
    Donate  

    eBay API Help

    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.

  2. #2
    Platinum Lifetime Member
    GreenT's Avatar
    Join Date
    Sep 2010
    Posts
    11
    Country

    Canada
    DNF$
    260
    Bank
    0
    Total DNF$
    260
    Donate  
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com