[JSCIENCE-38] Real number unnecessary error augmentation at creation. Created: 18/Jul/06  Updated: 31/Jan/11  Resolved: 02/Oct/07

Status: Resolved
Project: jscience
Component/s: www
Affects Version/s: current
Fix Version/s: Version 6.0

Type: Bug Priority: Major
Reporter: dautelle Assignee: jscience-issues
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issuezilla Id: 38

 Description   

Considering the following real creation:

Real r = Real.valueOf("1200±1E-3");
LargeInteger error = r.getError();
int exp = r.getExponent(); // Exponent for both real mantissa and error

// Double representing the error.
double err = error.doubleValue() * Math.pow(10, exp);

System.out.println(err);

> 0.00100001

The error should be exactly equal to 0.001



 Comments   
Comment by dautelle [ 02/Oct/07 ]

Fixed in 4.3.0

Generated at Thu Mar 30 03:56:52 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.