Ticket #7356: latex-float-4.2.1-reviewer.patch

File latex-float-4.2.1-reviewer.patch, 702 bytes (added by robert.marik, 12 years ago)

apply on top of latex-float-4.2.1.patch

  • sage/misc/latex.py

    # HG changeset patch
    # User Robert Marik <marik@mendelu.cz>
    # Date 1258702959 -3600
    # Node ID 2165bce2fcac92d55ddb95e44ff8d705e3449af4
    # Parent  98d99ab394f45cbc858ea512a44f7c609fc47775
    minor fix for #7356
    
    diff -r 98d99ab394f4 -r 2165bce2fcac sage/misc/latex.py
    a b  
    275275        1 \times 10^{-10}
    276276        sage: float_function(float(2e10))
    277277        20000000000.0
     278
     279    TESTS::
     280
     281    trac #7356 fixed::
     282
    278283        sage: latex(float(2e-13))
    279         2.00000000000000 \times 10^{-13}
     284        2 \times 10^{-13}
    280285    """
    281286    from sage.all import RDF
    282287    return latex(RDF(x))