Formatting numbers with significant figures in C#

后端 未结 8 1454
小鲜肉
小鲜肉 2020-11-28 13:01

I have some decimal data that I am pushing into a SharePoint list where it is to be viewed. I\'d like to restrict the number of significant figures displayed in the result

8条回答
  •  天涯浪人
    2020-11-28 13:56

    I found this article doing a quick search on it. Basically this one converts to a string and goes by the characters in that array one at a time, till it reached the max. significance. Will this work?

提交回复
热议问题