Heinrich Bohne created NUMBERS-119:
--------------------------------------

             Summary: BigFraction(double) constructor does not treat subnormal 
numbers correctly
                 Key: NUMBERS-119
                 URL: https://issues.apache.org/jira/browse/NUMBERS-119
             Project: Commons Numbers
          Issue Type: Bug
          Components: fraction
    Affects Versions: 1.0
            Reporter: Heinrich Bohne


The constructor {{BigFraction(double)}} does not take into account the fact 
that, when the biased exponent of a {{double}} value is {{0}} and the mantissa 
is not {{0}} (i.e. when the value represents a subnormal number), the actual 
exponent in effect is not {{-1023}} but {{-1022}} (or, in other words, the 
effective exponent bias is not {{1023}} but {{1022}}).

The value of the created {{BigFraction}} is therefore not equal to the value of 
the passed {{double}} argument.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to