All functions > MATH

All functions in the MATH category.

Backend availability

DD Available DD Partially available DD Not available DD DuckDB · PG Postgres · CH ClickHouse · TR Trino · BQ BigQuery · SF Snowflake · DB Databricks · SV Serving

Arithmetic

FunctionDescriptionBackends
+ [addition]Adds two numeric values, or adds an interval to a date or timestamp.DDPGCHTRBQSFDBSV
UNARY_MINUS()Negates a numeric expression (unary minus).DDPGCHTRBQSFDBSV
UNARY_PLUS()Explicit unary plus on an expression (no-op on the value).DDPGCHTRBQSFDBSV
- [subtraction]Subtracts the right-hand value from the left-hand value (numeric, temporal, or interval forms).DDPGCHTRBQSFDBSV
FACTORIAL()Returns the factorial of a non-negative integer (n!).DDPGCHTRBQSFDBSV
CLAMP()Constrains a value to a closed interval: the result is the value limited to lie between low and...DDPGCHTRBQSFDBSV
* [multiplication]Returns the product of two numbers, or scales an interval by an integer factor.DDPGCHTRBQSFDBSV
/ [division]Divides the left-hand number by the right-hand number, producing a DOUBLE result.DDPGCHTRBQSFDBSV
// [type-preserving]Divides the left-hand number by the right-hand number while preserving the dividend's type...DDPGCHTRBQSFDBSV
% [remainder]Returns the remainder after dividing the left-hand number by the right-hand number.DDPGCHTRBQSFDBSV

Rounding

FunctionDescriptionBackends
ROUND()Rounds a number to the nearest integer or to a specified number of decimal places.DDPGCHTRBQSFDBSV
TRUNCATE()Returns the integer part of a number by discarding the fractional part.DDPGCHTRBQSFDBSV
FLOOR()Returns the largest integer less than or equal to the input.DDPGCHTRBQSFDBSV
CEIL()Returns the smallest integer greater than or equal to the input.DDPGCHTRBQSFDBSV

Sign And Absolute

FunctionDescriptionBackends
ABS()Returns the absolute value of a number.DDPGCHTRBQSFDBSV
SIGN()Returns the sign of a number: -1 for negative, 0 for zero, 1 for positive.DDPGCHTRBQSFDBSV

Exponential

FunctionDescriptionBackends
^ [exponentiation]Raises a number to a power (integer or floating-point operands of the same type).DDPGCHTRBQSFDBSV
SQRT()Returns the square root of a number.DDPGCHTRBQSFDBSV
CBRT()Returns the cube root of a number.DDPGCHTRBQSFDBSV
EXP()Returns e raised to the power of the given number.DDPGCHTRBQSFDBSV
LN()Returns the natural logarithm (base e) of a number.DDPGCHTRBQSFDBSV
LOG()Returns the logarithm of a number to a specified base.DDPGCHTRBQSFDBSV

Trigonometric

FunctionDescriptionBackends
COS()Returns the cosine of an angle in radians.DDPGCHTRBQSFDBSV
SIN()Returns the sine of an angle in radians.DDPGCHTRBQSFDBSV
TAN()Returns the tangent of an angle in radians.DDPGCHTRBQSFDBSV
ACOS()Returns the arccosine (inverse cosine) of a number, in radians.DDPGCHTRBQSFDBSV
ASIN()Returns the arcsine (inverse sine) of a number, in radians.DDPGCHTRBQSFDBSV
ATAN()Returns the arctangent (inverse tangent) of a number, in radians.DDPGCHTRBQSFDBSV
ATAN2()Returns the arctangent of y/x, using the signs of both arguments to determine the quadrant.DDPGCHTRBQSFDBSV

Hyperbolic

FunctionDescriptionBackends
COSH()Returns the hyperbolic cosine of a number.DDPGCHTRBQSFDBSV
SINH()Returns the hyperbolic sine of a number.DDPGCHTRBQSFDBSV
TANH()Returns the hyperbolic tangent of a number.DDPGCHTRBQSFDBSV

Angle Conversion

FunctionDescriptionBackends
DEGREES()Converts an angle from radians to degrees.DDPGCHTRBQSFDBSV
RADIANS()Converts an angle from degrees to radians.DDPGCHTRBQSFDBSV

Base Conversion

FunctionDescriptionBackends
FROM_BASE()Returns the decimal (base 10) equivalent of a number expressed in a specified base.DDPGCHTRBQSFDBSV
TO_BASE()Returns the string representation of a decimal number in a specified base.DDPGCHTRBQSFDBSV

Constant

FunctionDescriptionBackends
E()Returns the mathematical constant e (Euler's number).DDPGCHTRBQSFDBSV
PI()Returns the mathematical constant π (pi).DDPGCHTRBQSFDBSV

Bucketing

FunctionDescriptionBackends
WIDTH_BUCKET_REGULAR()Returns the bucket number for a value in equally-spaced buckets within a range.DDPGCHTRBQSFDBSV
WIDTH_BUCKET()Returns the bucket number for a value in a histogram with custom bin boundaries.DDPGCHTRBQSFDBSV

Summary
Functions in this category: 40

This documentation is automatically generated from the FeatureMesh registry.