BUG #14046: Bad mathematical rules for 0 cast

From: jaroslaw(dot)stoklosa(at)nomino(dot)pl
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #14046: Bad mathematical rules for 0 cast
Date: 2016-03-25 08:56:14
Message-ID: 20160325085614.2915.72425@wrigleys.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 14046
Logged by: Jarosław Stokłosa
Email address: jaroslaw(dot)stoklosa(at)nomino(dot)pl
PostgreSQL version: 9.4.5
Operating system: x86_64-redhat-linux-gnu
Description:

Below query should return 2 times TRUE.

SELECT cast('+0' as FLOAT) = cast('-0' as FLOAT), cast('+0' as FLOAT)::TEXT
= cast('-0' as FLOAT)::TEXT

+0 and -0 should be casted to +0 or 0.

Regards

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message srivathson.k 2016-03-25 10:26:42 BUG #14047: Problem while initdb - 0xC000001D
Previous Message keler 2016-03-25 07:12:20 BUG #14045: ** BUILD FAILED **