This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 9005 - oops! in algorithm of scientificMap
Summary: oops! in algorithm of scientificMap
Status: CLOSED FIXED
Alias: None
Product: XML Schema
Classification: Unclassified
Component: Datatypes: XSD Part 2 (show other bugs)
Version: 1.1 only
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: David Ezell
QA Contact: XML Schema comments list
URL:
Whiteboard:
Keywords: decided
Depends on:
Blocks:
 
Reported: 2010-02-15 15:48 UTC by Dave Peterson
Modified: 2010-04-26 14:56 UTC (History)
1 user (show)

See Also:


Attachments

Description Dave Peterson 2010-02-15 15:48:53 UTC
In the definition of the function "scientificMap", it appears that the value of the exponent part is subtracted from the significand part, rather than the two being properly multiplied together.

This error was introduced in datatypes revision 1.7.2.8, 17 Jun 2004, and apparently never before noticed.  :-(  (Just prior to that revision, the operation was shown as a multiplication, at the time denoted by an asterisk rather than a "real" multiplication sign.)

The obvious fix is to replace the minus sign with a multiplication sign in two places.