parameters: ()
return_statement: return precisionInt
docstring: Return the Draft precision setting.
docstring_summary: Return the Draft precision setting.
docstring_tokens: Return the Draft precision setting .
function: def precision():
      """Return the Draft precision setting."""
      # Set precision level with a cap to avoid overspecification that:
      #  1 - whilst it is precise enough (e.g. that OCC would consider
      #      2 points are coincident)
      #      (not sure what it should be 10 or otherwise);
      #  2 - but FreeCAD/OCC can handle 'internally'
      #      (e.g. otherwise user may set something like
      #      15 that the code would never consider 2 points are coincident
      #      as internal float is not that precise)
      precisionMax = 10
      precisionInt = PARAMGRP.GetInt("precision", 6)
      precisionInt = (precisionInt if precisionInt <= 10 else precisionMax)
      return precisionInt
function_tokens: def precision ( ) : # Set precision level with a cap to avoid overspecification that: #  1 - whilst it is precise enough (e.g. that OCC would consider #      2 points are coincident) #      (not sure what it should be 10 or otherwise); #  2 - but FreeCAD/OCC can handle 'internally' #      (e.g. otherwise user may set something like #      15 that the code would never consider 2 points are coincident #      as internal float is not that precise) precisionMax = 10 precisionInt = PARAMGRP . GetInt ( "precision" , 6 ) precisionInt = ( precisionInt if precisionInt <= 10 else precisionMax ) return precisionInt