开发者

Add '+' sign using Flex NumberFormatter

开发者 https://www.devze.com 2023-01-09 01:11 出处:网络
I want to format a number with the \'+\' or \'-\' sign attached to it. When i tried with the useNegativeSign=true, it ga开发者_运维知识库ve only \'-\' sign.

I want to format a number with the '+' or '-' sign attached to it. When i tried with the useNegativeSign=true, it ga开发者_运维知识库ve only '-' sign. I want like this : +13%, -12%, ...

Thanks in Advance, Cheers,PK


You probably want to write your own Formatter for this, to prepend the symbol and append the percent sign.

Creating a formatter

0

精彩评论

暂无评论...
验证码 换一张
取 消