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()
精彩评论