↑↓ select ↵ open ⌫ change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Functions / Mathematical Functions And Operators

Nearest integer less than or equal to argument

Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20

Signatures & examples

floor ( numeric ) → numeric
Nearest integer less than or equal to argument
floor(42.8) → 42
floor(-42.8) → -43
floor ( double precision ) → double precision
Nearest integer less than or equal to argument
floor(42.8) → 42
floor(-42.8) → -43
Version history 3
  1. 12 → 13 changed
  2. 9.0 → 9.1 changed
  3. 7.2 → 7.3 changed

Definition snapshot: b7bd9cda · English manual source