locked
ProductListings - Incorrect FormattedPrice for $49.99

    Question

  • Hi,

    The FormattedPrice included in ProductListings are incorrectly formated.

    It looks like a float rounding issue, but we do not have access to the raw data from Code.

    Here is how I define it in WindowsStoreProxy.xml:

    <Product ProductId="MyProduct" ProductType="Consumable">
      <MarketData xml:lang="en-us">
        <Name>MyProduct</Name>
        <Price>49.99</Price>
        <CurrencySymbol>$</CurrencySymbol>
        <CurrencyCode>USD</CurrencyCode>
      </MarketData>
    </Product>
    

    The result in the code will be "49.990002 $"

    I just want to make sure this is going to work properly in the store. I can't just go hack the value in there. This is formatted per country and currency.

    Thanks

    Tuesday, June 3, 2014 9:46 PM

Answers

  • You should be fine in production when pulling the price from the store.

    --Rob

    • Marked as answer by Anne Jing Monday, June 16, 2014 1:21 AM
    Wednesday, June 4, 2014 1:23 AM
    Moderator