I have a decimal number, say 1234.500. I want to display it as 1,234.5. I\'m currently converting it to a double to remove the trailing \'0\'s.
What does the following Python statement mean开发者_StackOverflow? send_data=\"\" str_len = \"%#04d\" % (len(send_data)/2)
I found the below code through Google. It almost does what I want it to do, except it doesn\'t provide a way to indicate the precision like \'%.*f\' does in C-type format strings. Also, it doesn\'t pr