Is it possible to make printf print float values like 5.301 and 2.01 without printing extra zeros on the end?

Thanks.