Draft: supported comma as decimals separator

This commit is contained in:
Yorik van Havre 2014-05-07 17:26:31 -03:00
parent f37a15c1af
commit 78a36e4e9a

View File

@ -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
#---------------------------------------------------------------------------