diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-10-19 02:08:19 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-10-19 02:08:19 +0000 |
commit | bab3d29fbab48e803e9dec09733a388aa1bbba22 (patch) | |
tree | 2ddcdc3283080b626a1012e5edbfd1a895118fe3 /src/include/utils/builtins.h | |
parent | 5c6a5fe18b2e8d1b4ec128c0441aca6d13d44121 (diff) | |
download | postgresql-bab3d29fbab48e803e9dec09733a388aa1bbba22.tar.gz postgresql-bab3d29fbab48e803e9dec09733a388aa1bbba22.zip |
This patch adds some missing functions for float8 math operations,
specifically ceil(), floor(), and sign(). There may be other functions
that need to be added, but this is a start. I've included some simple
regression tests.
Neil Conway
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index 9f1c9ba8dbf..990c9f36be8 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.202 2002/09/22 17:27:25 tgl Exp $ + * $Id: builtins.h,v 1.203 2002/10/19 02:08:18 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -261,6 +261,9 @@ extern Datum text_float4(PG_FUNCTION_ARGS); extern Datum float8_text(PG_FUNCTION_ARGS); extern Datum float4_text(PG_FUNCTION_ARGS); extern Datum dround(PG_FUNCTION_ARGS); +extern Datum dceil(PG_FUNCTION_ARGS); +extern Datum dfloor(PG_FUNCTION_ARGS); +extern Datum dsign(PG_FUNCTION_ARGS); extern Datum dtrunc(PG_FUNCTION_ARGS); extern Datum dsqrt(PG_FUNCTION_ARGS); extern Datum dcbrt(PG_FUNCTION_ARGS); |