python use local numeric format

import locale
locale.setlocale(locale.LC_ALL, '')

value = 2.5
print (locale.str(value))
 
the output is
 
2,5 

Nessun commento: