I am trying to write some floats numbers as decimals with 14 digit after floating point. So i want to add traling zeros for numbers who have less than 14 digits . however, when I use the folowing, it performs a random approximation rather than adding zeros .
print ('%.14f' % 381.949875)
print ('%.14f' % 383.558625 )
print ( '%.14f' % 382.593375)
The result is as follows :
381.94987500000002
383.55862500000001
382.59337499999998
Any clue ?