#8896: 0.0000000000000000000000000000 is parsed completely differently than
1.0000000000000000000000000000 for no good reason
--------------------------------+-------------------------------------------
Reporter: was | Owner: AlexGhitza
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.4.3
Component: basic arithmetic | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
--------------------------------+-------------------------------------------
Comment(by leif):
Replying to [comment:10 robertwb]:
> Replying to [comment:7 leif]:
> > Also, is it intentional that the exponent is ignored when computing
the required precision?
> > E.g., {{{1.0e-1000000000}}} as well as {{{1.0e-10000000000}}} evaluate
to zero, because of only 53 bits precision.
>
> Yes, of course. The size of the exponent is completely orthogonal to the
number of significant figures.
I don't agree either. If the "effective" exponent (the one in normalized
form) exceeds the maximum, one should either increase {{{prec}}}
accordingly or - more practical - raise an exception.
If not, this could be a pitfall. But '''I''' don't mind... ;-)
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8896#comment:16>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.