Search string formating in python doc F = 0.86194672985615151
print "%0.2f" % F 0.86 print "%0.5f" % F 0.86195 On Tue, 2010-01-05 at 14:55 -0800, efecto wrote: > Hi guys.. I have another question. > I want to clamp a float value with 8 digits to smaller number of > digits. > > Example: > 0.86194672985615151 -> 0.86194 > > What's the best and the most efficient way to achieve this? > > Thanks. > -- > http://groups.google.com/group/python_inside_maya
-- http://groups.google.com/group/python_inside_maya
