Skip to content

Commit a4007c0

Browse files
committed
Update for test changes.
1 parent 16cc537 commit a4007c0

File tree

2 files changed

+68
-2
lines changed

2 files changed

+68
-2
lines changed

src/test/regress/expected/float8-exp-three-digits.out

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,46 @@ SELECT '' AS five, f.f1, f.f1 % AS round_f1
149149
| 1.2345678901234e-200 | 0
150150
(5 rows)
151151

152+
-- ceil
153+
select ceil(f1) as ceil_f1 from float8_tbl f;
154+
ceil_f1
155+
----------------------
156+
0
157+
1005
158+
-34
159+
1.2345678901234e+200
160+
1
161+
(5 rows)
162+
163+
-- floor
164+
select floor(f1) as floor_f1 from float8_tbl f;
165+
floor_f1
166+
----------------------
167+
0
168+
1004
169+
-35
170+
1.2345678901234e+200
171+
0
172+
(5 rows)
173+
174+
-- sign
175+
select sign(f1) as sign_f1 from float8_tbl f;
176+
sign_f1
177+
---------
178+
0
179+
1
180+
-1
181+
1
182+
1
183+
(5 rows)
184+
185+
-- square root
152186
SELECT sqrt(float8 '64') AS eight;
153187
eight
154188
-------
155189
8
156190
(1 row)
157191

158-
-- square root
159192
SELECT |/ float8 '64' AS eight;
160193
eight
161194
-------

src/test/regress/expected/float8-fp-exception.out

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,46 @@ SELECT '' AS five, f.f1, f.f1 % AS round_f1
149149
| 1.2345678901234e-200 | 0
150150
(5 rows)
151151

152+
-- ceil
153+
select ceil(f1) as ceil_f1 from float8_tbl f;
154+
ceil_f1
155+
----------------------
156+
0
157+
1005
158+
-34
159+
1.2345678901234e+200
160+
1
161+
(5 rows)
162+
163+
-- floor
164+
select floor(f1) as floor_f1 from float8_tbl f;
165+
floor_f1
166+
----------------------
167+
0
168+
1004
169+
-35
170+
1.2345678901234e+200
171+
0
172+
(5 rows)
173+
174+
-- sign
175+
select sign(f1) as sign_f1 from float8_tbl f;
176+
sign_f1
177+
---------
178+
0
179+
1
180+
-1
181+
1
182+
1
183+
(5 rows)
184+
185+
-- square root
152186
SELECT sqrt(float8 '64') AS eight;
153187
eight
154188
-------
155189
8
156190
(1 row)
157191

158-
-- square root
159192
SELECT |/ float8 '64' AS eight;
160193
eight
161194
-------

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy