예제 #1
0
 def fn(i):
     return formatd("%.2f", as_float[i]) == as_string[i]
예제 #2
0
 def f(x):
     return formatd('%.2f', x)
예제 #3
0
 def ll_strtod_formatd(fmt, x):
     return LLSupport.to_rstr(rarithmetic.formatd(LLSupport.from_rstr(fmt), x))
예제 #4
0
 def f():
     result = ''
     for num, string, fval in unmarshaller(buf):
         result += '%d=%s/%s;' % (num, string, formatd('%.17g', fval))
     return result
예제 #5
0
 def f(y):
     return rarithmetic.formatd("%.2f", y)
예제 #6
0
파일: rmarshal.py 프로젝트: alkorzt/pypy
def dump_float(buf, x):
    buf.append(TYPE_FLOAT)
    s = formatd("%.17g", x)
    buf.append(chr(len(s)))
    buf += s
예제 #7
0
 def fn(x):
     return formatd("%.2f", x)
예제 #8
0
 def f(x):
     return formatd('%.2f', x)
예제 #9
0
 def fn(i):
     return formatd("%.2f", as_float[i]) == as_string[i]
예제 #10
0
 def ll_strtod_formatd(cls, fmt, x):
     return cls.to_rstr(rarithmetic.formatd(cls.from_rstr(fmt), x))
예제 #11
0
파일: floatobject.py 프로젝트: alkorzt/pypy
def str__Float(space, w_float):
    x = w_float.floatval
    s = formatd("%.12g", x)
    return space.wrap(should_not_look_like_an_int(s))
예제 #12
0
 def fn(x):
     return formatd("%.2f", x)
예제 #13
0
 def oofakeimpl(fmt, x):
     return ootype.oostring(rarithmetic.formatd(fmt._str, x), -1)
예제 #14
0
def dump_float(buf, x):
    buf.append(TYPE_FLOAT)
    s = formatd("%.17g", x)
    buf.append(chr(len(s)))
    buf += s
예제 #15
0
 def f():
     result = ""
     for num, string, fval in unmarshaller(buf):
         result += "%d=%s/%s;" % (num, string, formatd("%.17g", fval))
     return result
예제 #16
0
 def oofakeimpl(fmt, x):
     return ootype.oostring(rarithmetic.formatd(fmt._str, x), -1)
예제 #17
0
파일: ll_str.py 프로젝트: chyyuu/pygirl
def ll_float_str(repr, f):
    return formatd("%f", f)
예제 #18
0
def str__Float(space, w_float):
    x = w_float.floatval
    s = formatd("%.12g", x)
    return space.wrap(should_not_look_like_an_int(s))
예제 #19
0
 def f(y):
     return rarithmetic.formatd("%.2f", y)