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
float s handled like fstr. |
|
|
|
enstr2(easting,
northing,
prec,
*extras)
Return easting, northing string representations. |
|
|
|
fstr(floats,
prec=6,
fmt=' F ' ,
ints=False,
sep=' , ' ,
strepr=None)
Convert one or more floats to string, optionally stripped of trailing
zero decimals. |
|
|
|
fstrzs(efstr,
ap1z=False)
Strip trailing zero decimals from a float string. |
|
|
|
hstr(height,
prec=2,
fmt=' %+.*f ' ,
ints=False,
m='
' )
Return a string for the height value. |
|
|
|
instr(inst,
*args,
**kwds)
Return the string representation of an instantiation. |
|
|
|
pairs(items,
prec=6,
fmt=' F ' ,
ints=False,
sep=' = ' )
Convert items to name=value strings, with float s
handled like fstr. |
|
|
|
reprs(objs,
prec=6,
fmt=' F ' ,
ints=False)
Convert objects to repr strings, with
float s handled like fstr. |
|
|
|
strs(objs,
prec=6,
fmt=' F ' ,
ints=False)
Convert objects to str strings, with float s
handled like fstr. |
|
|
|
unstr(name,
*args,
**kwds)
Return the string representation of an invokation. |
|
|