I don\'t understand why, by formatting a string containing a float value, the precision of this last one is not respected. Ie:
\'%f\' % 38.2551994324
I would use the modern str.format() method:
>>> '{}'.format(38.2551994324) '38.2551994324'
The modulo method for string formatting is now deprecated as per PEP-3101