-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Open
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the communityOriginated from the communityS-3-ux-surpriseIssue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.T-sql-queriesSQL Queries TeamSQL Queries Teambranch-release-22.1Used to mark GA and release blockers, technical advisories, and bugs for 22.1Used to mark GA and release blockers, technical advisories, and bugs for 22.1
Description
Describe the problem
Some mathematical calculations return negative zeros, which seems unexpected.
To Reproduce
testdb=> select 0 * -69.5;
?column?
----------
-0.0
(1 row)Expected behavior
The result should be 0.0 without negative symbol.
Environment:
- CockroachDB version [7625d9f]
- Server OS: [Linux/Ubuntu]
- Client app [psql]
Jira issue: CRDB-49710
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-bugCode not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.O-communityOriginated from the communityOriginated from the communityS-3-ux-surpriseIssue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.Issue leaves users wondering whether CRDB is behaving properly. Likely to hurt reputation/adoption.T-sql-queriesSQL Queries TeamSQL Queries Teambranch-release-22.1Used to mark GA and release blockers, technical advisories, and bugs for 22.1Used to mark GA and release blockers, technical advisories, and bugs for 22.1
Type
Projects
Status
Backlog