aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/numeric.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-08-10 18:29:27 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-08-10 18:29:27 +0000
commite61fd4ac7414a52714c3288889cc754d2e11c4a8 (patch)
treea3bf339b96dc1d3f5fde9c2fdb7b8d03efdd6b95 /src/include/utils/numeric.h
parent933b17b663f06bd5bbe24e8e12044a844fd79bbf (diff)
downloadpostgresql-e61fd4ac7414a52714c3288889cc754d2e11c4a8.tar.gz
postgresql-e61fd4ac7414a52714c3288889cc754d2e11c4a8.zip
Support EEEE (scientific notation) in to_char().
Pavel Stehule, Brendan Jurd
Diffstat (limited to 'src/include/utils/numeric.h')
-rw-r--r--src/include/utils/numeric.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/utils/numeric.h b/src/include/utils/numeric.h
index 19452b54fa3..b1aa27d88dd 100644
--- a/src/include/utils/numeric.h
+++ b/src/include/utils/numeric.h
@@ -7,7 +7,7 @@
*
* Copyright (c) 1998-2009, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/include/utils/numeric.h,v 1.27 2009/01/01 17:24:02 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/utils/numeric.h,v 1.28 2009/08/10 18:29:27 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -84,4 +84,9 @@ typedef NumericData *Numeric;
#define PG_GETARG_NUMERIC_COPY(n) DatumGetNumericCopy(PG_GETARG_DATUM(n))
#define PG_RETURN_NUMERIC(x) return NumericGetDatum(x)
+/*
+ * Utility functions in numeric.c
+ */
+extern char *numeric_out_sci(Numeric num, int scale);
+
#endif /* _PG_NUMERIC_H_ */