How to round of three numbers in typescript and their total percentage is 100?

后端 未结 0 1949
野的像风
野的像风 2020-12-01 19:57

I want to round off percentage values of three numbers to two decimal places but also the total should be 100%. e.g. in the typescript code below, the sum of percentage is 9

相关标签:
回答
  • 消灭零回复
提交回复
热议问题