How can I format decimal property to currency?

前端 未结 8 1529
眼角桃花
眼角桃花 2020-12-02 21:50

I want to format a decimal value as a currency value.

How can I do this?

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 22:33

    A decimal type can not contain formatting information. You can create another property, say FormattedProperty of a string type that does what you want.

提交回复
热议问题