Did I find the right examples for you? yes no

All Samples(8)  |  Call(5)  |  Derive(0)  |  Import(3)

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
 
    try:
        return parts_to_float(sign, before_point, after_point, exponent)
    except ValueError:
        raise ParseStringError("invalid literal for float()")

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/module/ll_strtod.py   plexnet(Download)
        def oofakeimpl(sign, beforept, afterpt, exponent):
            return rarithmetic.parts_to_float(sign._str, beforept._str,
                                              afterpt._str, exponent._str)
 
        return extdef([str, str, str, str], 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)   
            return parts_to_float(sign, beforept, afterpt, expt)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/translator/c/test/test_extfunc.py   plexnet(Download)
def test_rarith_parts_to_float():
    from pypy.rlib.rarithmetic import parts_to_float
    def fn(sign, beforept, afterpt, exponent):
        return parts_to_float(sign, beforept, afterpt, exponent)
 

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/module/test/test_ll_strtod.py   plexnet(Download)
        def f(a, b, c, d):
            a,b,c,d = hlstr(a), hlstr(b), hlstr(c), hlstr(d)
 
            return rarithmetic.parts_to_float(a, b, c, d)