show no floating point if 0 else show 2 floating points python code example Example: how to add extra zeros after decimal in python >>> format(2.0, '.6f') '2.000000'