This article contains a full list of built-in MariaDB numeric functions and operators.
Continue readingTag: numeric functions
WIDTH_BUCKET() Function in Oracle
In Oracle, the WIDTH_BUCKET()
function allows you to construct equiwidth histograms, in which the histogram range is divided into intervals that have identical size.
For a given expression, WIDTH_BUCKET()
returns the bucket number into which the value of this expression would fall after being evaluated.
TRUNC(number) Function in Oracle
In Oracle Database, the TRUNC(number)
function returns a given number, truncated to a given number of decimal places.
Oracle also has a TRUNC(date)
function, which is used on dates. This article is solely about the TRUNC(number)
function, which is used on numbers.
SIGN() Function in Oracle
In Oracle, the SIGN()
function returns the sign of its argument as -1
, 0
, or 1
, depending on whether the argument is negative, zero, or positive, and also depending on whether the argument is of type NUMBER
or a floating-point number.
TANH() Function in Oracle
In Oracle, the TANH()
function returns the hyperbolic tangent of its argument.
TAN() Function in Oracle
In Oracle, the TAN()
function returns the tangent of its argument, where the argument is an angle expressed in radians.
NANVL() Function in Oracle
In Oracle, the NANVL()
function allows us to deal with NaN
values by specifying another number to return in its place.
The way it works is, it accepts two arguments. If the first argument is NaN
(not a number), it returns the second argument. If the first argument is a number, then it simply returns that number.
Note that this function is useful only for floating-point numbers of type BINARY_FLOAT
or BINARY_DOUBLE
.
SQRT() Function in Oracle
In Oracle, the SQRT()
function returns the square root of its argument.
SINH() Function in Oracle
In Oracle, the SINH()
function returns the hyperbolic sine of its argument.
SIN() Function in Oracle
In Oracle, the SIN()
function returns the sine of its argument, where the argument is an angle expressed in radians.