How to show decimal value with a defined fixed decimal places in a label

Hi
In our app we all users to define the number of decimal places to see for all cost values. How can I format the decimal value in a label to the defined decimal places?
Not sure if this can be achieved using string format.

Best Answer

  • AmiteshSharma.5497AmiteshSharma.5497 NZ ✭✭
    Accepted Answer

    Sorry forgot to put the code
    <Label Text="{ Binding TotalSell, StringFormat='{0:C2}' }" />

Answers

Sign In or Register to comment.