Public class ceilandfloor {
Public static void main (string [] ARGs ){
/*
The main task of these two functions is to cut off the digits after decimal places.
The difference is that floor always keeps the number smaller, while Ceil always increases
I haven't used the math class for a long time. I cannot remember it clearly, so that I can make mistakes when I read a scjp question. I will refresh my memory today. Remember!
Public class t {public static void main (string [] ARGs) {system. out.
Name
Description
ABS (decimal)
Returns the absolute value of a decimal number.
ABS (double)
Returns the absolute value of a double-precision floating point number.
ABS (int16)
Returns the
notes from the "Programmer's SQL Code" by Yang Zhengko, a teacher of the ROC web#创建数据库表CREATE Table T_person (fidnumber VARCHAR ( -), FName varchar ( -), Fbirthday datetime, Fregday datetime, Fweight DECIMAL (Ten,2)) #插入数据insert into T_person
AbsABS (number): Returns the absolute value of the specified digit. An absolute value is a numeric value that has no sign.Number: Any real number that requires an absolute value.Example:ABS (-1.5) equals 1.5.ABS (0) equals 0.ABS (2.5) equals
--Mathematical functions --abs Absolute Value,Select ABS ( -99)--ceiling to take the upper limit,Select CEILING (4.5)--floor to the lower limitSelect Floor (4.5)--power several parties,Select POWER (2,2)--round rounded,Select Round (6.45,1)--sqrt
There are a number of mysql functions, here are just a few of the commonly used functions. Math function abs (x) &NBSP ; //returns the absolute value of x Bin (x) //returns the binary of X (Oct returns octal,
First, mathematical functionsMathematical functions are mainly used for processing numbers, including integers, floating-point numbers, and so on.ABS (x)Returns the absolute value of XSELECT ABS (-1)--return 1Ceil (x), CEILING (x)Returns the
As for antipattern, you may know that its only function is to avoid reverse pattern during actual development. The main introduction in Baidu encyclopedia is as follows:
Recognized anti-pattern in software development
Anti-pattern in project
When processing some data, we hope to use the "Rounding" method, but C # uses the "four homes, six homes, five into two" method, as shown in the following example, the result is obtained using "four homes, six homes, and five into two:
double
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.