java - String with up to 2 decimal places Android -


this question has answer here:

currently in strings.xml have

`<string name="price_string">my string price: %1$s</string>` 

the problem outputs 5, instead of 5.5. how format include 2 decimals?

<string name="price_string">my string price: %0.2f$s</string>` 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -