Floating point and other formatting utilities.
|
anstr(name,
OKd=' ._- ' ,
sub=' _ ' )
Make a valid name of alphanumeric and OKd characters. |
|
|
|
attrs(inst,
*names,
**kwds)
Get instance attributes as name=value strings, with floats
handled like fstr. |
|
|
|
enstr2(easting,
northing,
prec,
*extras)
Return easting, northing string representations. |
|
|
|
fstr(floats,
prec=6,
fmt=' F ' ,
ints=False,
sep=' , ' )
Convert floats to string, optionally stripped of trailing zero
decimals. |
|
|
|
fstrzs(efstr)
Strip trailing zero decimals from a float string. |
|
|
|
instr(inst,
*args,
**kwds)
Return the string representation of an instantion. |
|
|
|
pairs(items,
prec=6,
fmt=' F ' ,
ints=False,
sep=' = ' )
Convert items to name=value strings, with floats handled like
fstr. |
|
|
|
reprs(objs,
prec=6,
fmt=' F ' ,
ints=False)
Convert objects to repr strings, with floats handled
like fstr. |
|
|
|
strs(objs,
prec=6,
fmt=' F ' ,
ints=False)
Convert objects to str strings, with floats handled like
fstr. |
|
|
|
unstr(name,
*args,
**kwds)
Return the string representation of an invokation. |
|
|