config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/fpformat.pyc

³ò
h”Rc@s dZddkZdddgZeidƒZydefd„ƒYZWnej
o
dZnXd	„Zd
„Z	d„Z
d„Zd
„Zd„Z
dS(s8General floating point formatting functions.

Functions:
fix(x, digits_behind)
sci(x, digits_behind)

Each takes a number or a string and a number of digits as arguments.

Parameters:
x:             number to be formatted; or a string resembling a number
digits_behind: number of digits behind the decimal point
iÿÿÿÿNtfixtscit
NotANumbers-^([-+]?)0*(\d*)((?:\.\d*)?)(([eE][-+]?\d+)?)$cBseZRS((t__name__t
__module__(((s$/usr/local/lib/python2.5/fpformat.pyRssfpformat.NotANumbercCsªti|ƒ}|djo
t|‚n|iddddƒ\}}}}|djo
d}n|o|d}n|ot|dƒ}nd}||||fS(	sÅReturn (sign, intpart, fraction, expo) or raise an exception:
    sign is '+' or '-'
    intpart is 0 or more digits beginning with a nonzero
    fraction is 0 or more digits
    expo is an integeriiiit+tiN(tdecodertmatchtNoneRtgrouptint(tstrestsigntintparttfractiontexpparttexpo((s$/usr/local/lib/python2.5/fpformat.pytextract s

$

cCs¾|djoLt|ƒ}||| ||}}||jo|d||}q´n\|djoNt|ƒ}|| |||}}||jod|||}q´n||fS(s5Remove the exponent by changing intpart and fraction.it0(tlen(RRRtfti((s$/usr/local/lib/python2.5/fpformat.pytunexpo/s


cCspt|ƒ}||jo||d||fSnt|ƒ}||djod|dfSn||}|||}|djo®||d}xL|djo$||djoPn|d}q™Wd|}|d}d}|| tt||ƒdƒdt|ƒ|d}|| ||}}n|djo||| fSn|| d|dfSdS(s*Round or extend the fraction to size digs.RiRt5it9N(Rtchrtord(RRtdigsRRttotalt	nextdigittn((s$/usr/local/lib/python2.5/fpformat.pyt	roundfrac=s.





8
cCsýt|ƒtdƒjot|ƒ}nyt|ƒ\}}}}Wntj
o|SnXt|||ƒ\}}t|||ƒ\}}x'|o|ddjo|d}q’W|djo
d}n|djo||d|Sn	||SdS(s‡Format x as [-]ddd.ddd with 'digs' digits after the point
    and at least one digit before.
    If digs <= 0, the point is suppressed.RiRit.N(ttypetreprRRRR!(txRRRRR((s$/usr/local/lib/python2.5/fpformat.pyRWs 	


cCsÑt|ƒtdƒjot|ƒ}nt|ƒ\}}}}|phx1|o)|ddjo|d}|d}qKW|o#|d|d}}|d}qÝd}n.|t|ƒd}|d|d|}}td|ƒ}t|||ƒ\}}t|ƒdjo6|d|d|d |t|ƒd}}}n||}|djo|d|}ntt|ƒƒ}ddt|ƒ|}|djod|}nd	|}|d
|S(s¥Format x as [-]d.dddE[+-]ddd with 'digs' digits after the point
    and exactly one digit before.
    If digs is <= 0, one digit is kept and the point is suppressed.RiRiiÿÿÿÿR"it-Rte(R#R$RRtmaxR!tabs(R%RRRRRRR'((s$/usr/local/lib/python2.5/fpformat.pyRgs8

 



cCs[y;x4tdƒ\}}|Gt||ƒGt||ƒGHqWnttfj
onXdS(sInteractive test run.sEnter (x, digs): N(tinputRRtEOFErrortKeyboardInterrupt(R%R((s$/usr/local/lib/python2.5/fpformat.pyttest‡s&(t__doc__tret__all__tcompileRt
ValueErrorRt	TypeErrorRRR!RRR-(((s$/usr/local/lib/python2.5/fpformat.pys<module>s					 

Man Man