Numerical separators behave inconsistently

25 views
Skip to first unread message

Lucas Fiegl

unread,
Dec 1, 2022, 4:05:23 AM12/1/22
to sage-devel
Using numerical separators (such as 1_000_000) seems to behave inconsistently, ignoring everything after the first separator upon conversion to a different precision.

Reproduction:

    sage: z = 1_0000.000000000000000000000000000000000000
    sage: z # works as expected without the conversion
    10000.000000000000000000000000000000000000
    sage: RR(z)
    1.00000000000000

SageMath version 9.5, Release Date: 2022-01-30, Using Python 3.10.6
OS: Ubuntu 22.04.1

TB

unread,
Dec 2, 2022, 5:57:17 AM12/2/22
to sage-...@googlegroups.com
This reproduces in Sage 9.7. Thanks for the bug report.

Can you please open a ticket for this? The original ticket for PEP 515
in Sage: https://trac.sagemath.org/ticket/28490

Regards,
TB
> --
> You received this message because you are subscribed to the Google
> Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sage-devel+...@googlegroups.com
> <mailto:sage-devel+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/5dceac2d-545c-4ab4-8cca-2622a280c49dn%40googlegroups.com <https://groups.google.com/d/msgid/sage-devel/5dceac2d-545c-4ab4-8cca-2622a280c49dn%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages