Fixed "prnt" function to properly limit to 4 decimal places

Greatly simplify rebaseWire
This commit is contained in:
Daniel Taylor
2016-02-02 19:31:02 -06:00
parent a3209e1aee
commit 377595647d
2 changed files with 3 additions and 15 deletions

View File

@@ -179,7 +179,7 @@ class ObjectPocket:
# print "finishDepth" + str(obj.FinishDepth)
# print "offsets:", len(offsets)
def prnt(vlu): return str(round(vlu, 4))
def prnt(vlu): return str("%.4f" % round(vlu, 4))
for vpos in frange(obj.StartDepth, obj.FinalDepth, obj.StepDown, obj.FinishDepth):
# print "vpos: " + str(vpos)