String Format Numbers Thousands 123K, Millions 123M, Billions 123B

后端 未结 3 809
天涯浪人
天涯浪人 2020-11-29 01:39

Is there a way using a string formatter to format Thousands, Millions, Billions to 123K, 123M, 123B without having to change code to divide value by Thousand, Million or Bi

3条回答
  •  [愿得一人]
    2020-11-29 02:41

    I use this mix of formats in an Extension Method (just add it to your project and enjoy)

提交回复
热议问题