Did I find the right examples for you? yes no

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/objspace/std/strutil.py   plexnet(Download)
"""
Pure Python implementation of string utilities.
"""
 
from pypy.rlib.rarithmetic import ovfcheck, break_up_float, parts_to_float
    # 1) parse the string into pieces.
    try:
        sign, before_point, after_point, exponent = break_up_float(s)
    except ValueError:
        raise ParseStringError("invalid literal for float()")
    # 1) parse the string into pieces.
    try:
        sign, before_point, after_point, exponent = break_up_float(s)
    except ValueError:
        raise ParseStringError("invalid literal for float()")
    # 1) parse the string into pieces.
    try:
        sign, before_point, after_point, exponent = break_up_float(s)
    except ValueError:
        raise ParseStringError("invalid literal for float()")

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rlib/test/test_rarithmetic.py   plexnet(Download)
    def test_parts_to_float(self):
        from pypy.rlib.rarithmetic import parts_to_float, break_up_float
        def f(x):
            if x == 0:
                s = '1.0'
            else:
                s = '1e-100'
            sign, beforept, afterpt, expt = break_up_float(s)