In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Take the entire function:
1. Trunc (value,precision) intercepts a number by precision without rounding.
Returns the x value of the decimal place truncated to y: trunc (x, [y]):
Select trunc 23.33-23
2. Round (value,precision) enter the value [rounded off] according to the given precision (precision).
Returns the x value rounded to the right of the decimal point: round (x, [y]):
Select round 23.33-23
3. Ceiling (value) produces the smallest integer greater than or equal to the specified value (value) [rounded up].
Returns the largest integer greater than or equal to x:
Select ceiling (23.33)-24
4. Floor (value), contrary to ceiling (), produces the smallest integer that is less than or equal to the specified value (value).
Returns the largest integer equal to or less than x:
Select floor 23.33-23
5. Sign (value) is opposite to the absolute value function ABS (). ABS () gives the quantity of the value instead of its symbol, while sign (value) gives the symbol of the value instead of the quantity.
Returns the symbol of x:
Select sign (- 23.33)-1 Summary:
[rounding]: round ()
[round down]: FLOOR (), cast (x as int). The number of days of the date cannot be used with cast, and floor (cast (date as float)) is required.
[round up]: CEILING ()
[decimal]: x-floor (x)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.