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
Post a Comment