Пример #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
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
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
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)