PL/SQL Shows Wrong Result When Multiplying A BINARY_DOUBLE by "-1"

(Doc ID 2217063.1)

Last updated on DECEMBER 25, 2016

Applies to:

PL/SQL - Version 11.2.0.1 to 12.1.0.1 [Release 11.2 to 12.1]
Information in this document applies to any platform.
*** Checked for relevance on 26th Dec 2016 ***

Symptoms

PL/SQL shows wrong result when multiplying a BINARY_DOUBLE by "-1". Multiplying by other values like -2 or -1.0001 etc returns correct value.
Following code illustrates the issue.

 

Changes

Upgraded database from lower version to 11.2.0.x or 12.1.0.x or newly implemented a code that multiples binary double with -1 value.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms