MATHEMATICAL FUNCTIONS :¶
Mathematical functions in sql server like Abs,Ceiling,floor,power,square,sqrt and round functions
Abs() :¶
ABS(numeric_expression) stands for absolute and returns the absolute (positive) number.
1 | |
Ceiling() :¶
The CEILING(numeric_expression) function returns the smallest integer value that is larger than or equal to a number.
1 2 | |
Floor() :¶
The FLOOR(numeric_expression) function returns the Lagest integer value that is less than or equal to a number
1 2 | |
Power() :¶
power(expression,power) returns the power value of the specified expression to the specified power.
1 | |
1 2 3 4 | |
Square() :¶
The SQUARE() function returns the square of a number.
1 2 3 | |
SQRT() :¶
SQRT() returns the square root of a given value
1 2 3 | |
ROUND() :¶
The ROUND() function rounds a number to a specified number of decimal places
1 2 3 4 5 6 7 | |