Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Math functions

abs is available for int2, int4, int8, and float8. Unless noted otherwise, the following functions operate on float8:

ceil, ceiling, floor, round, trunc, sign
sqrt, exp, ln, log(float8), log(float8, float8), power(float8, float8)
pi, sin, cos, tan, cbrt, degrees, radians

mod is available for int2, int4, and int8); gcdandlcmare available forint4andint8`. Arithmetic errors return SQLSTATE instead of silently saturating.