Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to use Angular percent pipe without sign?

I am trying to format the value with percent pipe in html(Angular2) and i need the percentage value without % sign

like image 566
Joseph Bineesh Avatar asked Nov 06 '22 22:11

Joseph Bineesh


1 Answers

As @Amadan commented in your question, you can use number pipe instead of percent pipe and multiply your value by 100. Like this:

{{ value * 100 | number }}

See this DEMO sample

like image 78
benshabatnoam Avatar answered Nov 25 '22 16:11

benshabatnoam