Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - The data taken by SQL should be converted into decimal data in SQLServer, while the data taken by c#double type is an integer. How to solve this problem?
The data taken by SQL should be converted into decimal data in SQLServer, while the data taken by c#double type is an integer. How to solve this problem?
If the value taken from the database is multiplied or divided, it will become an integer. You might as well do something in your sql statement, that is, use the method of round () or str () to process the results you find. Both methods are written in SQL statements. You can check the specific usage. There are many online.