Get the App
SLTechnology News&Howtos  ›  Database  › 

How does SQL Server ceiling take the decimal up?

Shulou Source: shulou.com Published: 2022-05-31 18:23:47 09月29日 Update

This article mainly introduces "how to pick up decimals in SQL Server ceiling". In daily operation, I believe many people have doubts about how to pick up decimals in SQL Server ceiling. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to take decimals upward in SQL Server ceiling". Next, please follow the editor to study!

User demand: take the decimal up

For example: 70.0123 to 70.02

15.3689 take 15.37

70.0100 to 70.01

That is to say, if the third and fourth places of the decimal place are both 0, drop the last two zeros.

Otherwise, it will go up by 0.01.

Methods:

Select cast (ceiling (15.368900100) / 100as dec (4jing2))

At this point, the study of "how to take decimals upward in SQL Server ceiling" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Tags: Decimals learning methods more help practical and then articles end theory users knowledge articles websites materials follow questions requirements easy to use Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Microsoft vpn Redmi Shulou Tech Info