Skip to content

Commit

Permalink
Draft: supported comma as decimals separator
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed May 7, 2014
1 parent f37a15c commit 78a36e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Draft/DraftGui.py
Expand Up @@ -146,7 +146,7 @@ def displayExternal(internValue,decimals=4,dim='Length'):
else:
parts = (internValue,'??')
fmt = "{0:."+ str(decimals) + "f} "+ parts[1]
displayExt = fmt.format(float(parts[0]))
displayExt = fmt.format(float(parts[0].replace(",",".")))
return displayExt

#---------------------------------------------------------------------------
Expand Down

0 comments on commit 78a36e4

Please sign in to comment.