python get rid of trailing zeroes from float after round code example Example: how to remove trailing zeros in python a_string = a_string.strip("0")