#13036: Large PARI reals print incorrectly
-------------------------------------------------------------+--------------
Reporter: jdemeyer | Owner:
was
Type: defect | Status:
new
Priority: major | Milestone:
sage-5.1
Component: interfaces | Resolution:
Keywords: | Work issues:
Report Upstream: Reported upstream. Little or no feedback. | Reviewers:
Authors: | Merged in:
Dependencies: | Stopgaps:
-------------------------------------------------------------+--------------
Changes (by jdemeyer):
* upstream: N/A => Reported upstream. Little or no feedback.
Old description:
> {{{
> sage: a = pari('0.5 << (2^60+1)')
> sage: a
> 0.E347063955532709825
> }}}
> This is incorrectly printed as zero.
>
> The issue is really with printing, as a/2 is printed correctly:
> {{{
> sage: a/2
> 2.92746393008563 E347063955532709820
> }}}
>
> The GP interface works correctly:
> {{{
> sage: gp('0.5 << (2^60+1)')
> 5.8549278601712617670452189594528185681 E347063955532709820
> }}}
New description:
{{{
sage: a = pari('0.5 << (2^60+1)')
sage: a
0.E347063955532709825
}}}
This is incorrectly printed as zero.
The issue is really with printing, as a/2 is printed correctly:
{{{
sage: a/2
2.92746393008563 E347063955532709820
}}}
The GP interface works correctly:
{{{
sage: gp('0.5 << (2^60+1)')
5.8549278601712617670452189594528185681 E347063955532709820
}}}
'''Reported upstream''': [http://pari.math.u-bordeaux.fr/cgi-
bin/bugreport.cgi?bug=1322]
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13036#comment:1>
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.