Tom Lane
d58fa7611b
numeric_in accepts exponents; numeric to int4 rounds; float4/8 to numeric
...
is considerably more robust and accurate than it used to be.
Also, get rid of numeric's private allocation freelist, which is no longer
a win since Jan rewrote palloc.
2000-01-18 03:44:41 +00:00
Tom Lane
3cb8c8da68
Clean up problems with rounding/overflow code in NUMERIC, particularly
...
the case wherein zero was rejected for a field like NUMERIC(4,4).
Miscellaneous other code beautification efforts.
2000-01-15 23:42:49 +00:00
Bruce Momjian
b78769fda2
Fix it's and its to be correct.
2000-01-05 18:23:54 +00:00
Jan Wieck
b5c4b77283
Added nbtree operator class for NUMERIC
...
Jan
1999-09-29 21:13:31 +00:00
Bruce Momjian
3406901a29
Move some system includes into c.h, and remove duplicates.
1999-07-17 20:18:55 +00:00
Bruce Momjian
4b2c2850bf
Clean up #include in /include directory. Add scripts for checking includes.
1999-07-15 15:21:54 +00:00
Bruce Momjian
0cf1b79528
Cleanup of /include #include's, for 6.6 only.
1999-07-14 01:20:30 +00:00
Bruce Momjian
fcff1cdf4e
Another pgindent run. Sorry folks.
1999-05-25 22:43:53 +00:00
Bruce Momjian
4eadfe8754
Make 0x007f -> (unsigned)0x7f to make pgindent happy.
1999-05-25 22:04:56 +00:00
Bruce Momjian
07842084fe
pgindent run over code.
1999-05-25 16:15:34 +00:00
Jan Wieck
bb885dd1a1
Check for NUMERIC overflow a second time after rounding
...
Jan
1999-05-10 18:17:44 +00:00
Thomas G. Lockhart
84e832a802
Use sprintf() to convert float8 to a string during conversion to numeric.
...
Original code used float8out(), but the resulting exponential notation
was not handled (e.g. '3E9' was decoded as '3').
1999-05-04 15:50:24 +00:00
Bruce Momjian
8930699cd6
src/backend/utils/adt/numeric.c fails to compile due to a string having
...
an
embedded new-line character.
Billy G. Allie
1999-03-14 16:49:32 +00:00
Bruce Momjian
6724a50787
Change my-function-name-- to my_function_name, and optimizer renames.
1999-02-13 23:22:53 +00:00
Jan Wieck
814c8495a7
Removed precision restriction in numeric_round() causing
...
overflow error on high precision calculations where temporary
huge precision is required.
Jan
1999-01-05 11:10:45 +00:00
Jan Wieck
1bbe55c79f
Just one more bugfix - this time in cmp_abs (cannot imagine that
...
taking a logarithm with a 400 digit precision worked with that bug
in place).
Jan
1999-01-04 17:51:58 +00:00
Jan Wieck
c1855793df
Fixed backend crashing bug in apply_typmod()
...
Jan
1999-01-04 12:53:23 +00:00
Jan Wieck
e3a5ac283b
Little fix for round() function
...
Jan
1999-01-04 11:20:33 +00:00
Bruce Momjian
936d89e9e0
Fix NAN code.
1999-01-03 05:30:47 +00:00
Bruce Momjian
6fd29f2c01
Fix for NAN generation.
1999-01-03 02:40:12 +00:00
Bruce Momjian
d8ae7ffb2f
Fix for no platform NAN.
1999-01-01 04:17:13 +00:00
Jan Wieck
5df20d4449
Little precision fix for POWER(). I discovered problems with big
...
exponents.
Jan
1998-12-30 20:46:06 +00:00
Jan Wieck
0e9d75c6ac
Added NUMERIC data type with many builtin funcitons, operators
...
and aggregates.
Jan
1998-12-30 19:56:35 +00:00