开发者

asp.net MVC / SQL Server

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜