Floating point and other formatting utilities.
|
anstr(name,
OKd=' ._- ' ,
sub='_')
Make a valid name of alphanumeric and OKd characters. |
|
|
|
attrs(inst,
*names,
**Nones_True__pairs_kwds)
Get instance attributes as name=value strings, with
float s formatted by function fstr. |
|
|
|
enstr2(easting,
northing,
prec,
*extras,
**wide_dot)
Return an MGRS/OSGR easting, northing string representations. |
|
|
|
fstr(floats,
prec=6,
fmt='F',
ints=False,
sep=', ',
strepr=None,
force=True)
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. |
|
|
|
lrstrip(txt,
lrpairs={ ' ( ' : ' ) ' , ' < ' : ' > ' , ' [ ' : ' ] ' , ' { ' : ' } ' } )
Left- and right-strip parentheses, brackets, etc. |
|
|
|
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(where,
*args,
**kwds_)
Return the string representation of an invokation. |
|
|