开发者

asp.net MVC / SQL Server

开发者 https://www.devze.com 2023-02-03 17:55 出处:网络
I am a beginner in asp.net MVC.开发者_StackOverflow社区 Importing table data using JSON, on column is float when I use databasename.columnname.ToString()I end up with this number 9.026169838000000e+00

I am a beginner in asp.net MVC.开发者_StackOverflow社区 Importing table data using JSON, on column is float when I use databasename.columnname.ToString() I end up with this number 9.026169838000000e+009 however it should read 9026169838.

Appreciate your suggestions.


If you are processing the returning json in a javascript application, you can try the following code:

Number(databasename.columnname).toFixed(0).ToString()
0

精彩评论

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