question

pogacha avatar image
pogacha asked

Price in string

If there were a way to get a formatted string of the price with its currency that would be great. in Product.Price string display = price.getFormattedPrice(); So you can get "$19.9" or "€15.9" that you can display.
mobile associates
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Mudeem@Amazon avatar image
Mudeem@Amazon answered
Hello, Thank you for writing to us. The Price class has a method getFormattedString(). The getFormattedString() method returns the formatted string of the price. Regards Mudeem
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.